Re: google chrome extension

2019-04-03 Thread Alex Chiaranda
Greetings, for Chrome Extension, you must use Javascript, or Javascript + Native Code (compiling for the target platform, and distributing it with the extension). So the quick answer is "You shouldn't do it", but it might be possible. I don't think it would be approved thought, because you woul

Re: What's the simple way to implement a chat system in Django?

2017-10-05 Thread Alex Chiaranda
is use Firebase for the chat part an option ? On Monday, October 2, 2017 at 12:39:48 PM UTC-3, Kishore Srinivas wrote: > > I want to make a chat system in Django, but all those channel stuffs looks > difficult , so are there any other simpler way to implement a chat system, > thanks > -- You

Re: Custom change_form.html

2014-09-21 Thread Alex Chiaranda
Hi Salvatore, in your admin.py you can redefine your get_queryset and do something like this: class FooAdmin(admin.ModelAdmin): def get_queryset(self, request): if not request.user.is_superuser: return super(FooAdmin,self).get_queryset(request).filter(user=request.use

Re: How do I save an object under two different classes using the admin page

2014-09-04 Thread Alex Chiaranda
Hi, in your admin.py you can implement your own version for the save_model function. Follow the documentation: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_model Regards, On Wednesday, September 3, 2014 3:36:42 PM UTC-3, Alejandro Greppi wrote:

Re: How can I create models which only required during tests in Django 1.7c1?

2014-08-29 Thread Alex Chiaranda
Hi, can't you guys mock these models ? On Thursday, August 28, 2014 9:31:04 PM UTC-3, Yo-Yo Ma wrote: > > Ugh... same problem here. It seems you can't really create a model in > setUp anymore. I'll post a reply, if I find anything. > > On Wednesday, July 16, 2014 10:17:56 AM UTC-4, Alisue Lambda

Re: If use Template api , then it has Error... what is the problem?

2014-04-14 Thread Alex Chiaranda
Hi, > ImportError: No module named templeates check your imports, it seems that you misspelled templates Best wishes On Saturday, April 12, 2014 7:45:16 PM UTC-3, siho park wrote: > > - python 2.7, django 1.5 > > study to django on Google App Engine. > if i use *Template("It is now {{ current

Re: ajax get json not receive data from django

2013-05-16 Thread Alex Chiaranda
aren't you missing the csrf_token ? https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ajax On Thursday, May 16, 2013 8:53:36 AM UTC-3, Hai Nguyen wrote: > > Thanks you for your answer. > I'm trying to change mimetype="application/json; charset=utf-8" but could > not resolve problem > > On

Re: Blog writen by django?

2013-04-30 Thread Alex Chiaranda
don't forget the django-cms project https://www.django-cms.org/https://www.django-cms.org/ On Monday, April 29, 2013 5:05:00 PM UTC-3, gilberto dos santos alves wrote: > > mezzanine is spetacular. thanks! ;>). and plug and run. > > Em segunda-feira, 29 de abril de 2013 00h50min42s UTC-3, Russell