Re: Django rest framework - error 'TokenAuthentication' object has no attribute 'has_permission

2015-11-29 Thread Shekar Tippur
My bad. This was due to the permissions I had set on my class based view. I took out the tokenauthentication and it now works well. - Shekar -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emai

Re: Correct way to do async forms

2015-11-29 Thread Luis Zárate
take a look https://github.com/yceruto/django-ajax -- "La utopía sirve para caminar" Fernando Birri -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-us

Re: Correct way to do async forms

2015-11-29 Thread Saverio Trioni
I like to borrow rails-ujs library which enables very easy async links, forms and much more with just few HTML attributes ( and similar. ). You can just bind on the "ajax:success" event on your form/link to react on the response. -- You received this message because you are subscribed to the

Re: Can you remove a model's last field of SQLite3 in Django 1.8?

2015-11-29 Thread Markus Holtermann
No, you can't because of two things: 1. SQLite doesn't allow an 'ALTER TABLE ... DROP COLUMN ...' We get away with that by creating a new table and copying the data over: https://www.sqlite.org/lang_altertable.html 2. SQLite doesn't allow a 'CREATE TABLE' statement without any columns:

Re: Can you remove a model's last field of SQLite3 in Django 1.8?

2015-11-29 Thread Daniel Roseman
On Sunday, 29 November 2015 17:17:54 UTC, KwangYoun Jung wrote: > > Can you remove a model's last field of SQLite3 in Django 1.8? > > I have a model that has only one column in SQLite3. > When I remove a last field of the model, I get an error like below > > > > *django.db.utils.OperationalError: n

Can you remove a model's last field of SQLite3 in Django 1.8?

2015-11-29 Thread KwangYoun Jung
Can you remove a model's last field of SQLite3 in Django 1.8? I have a model that has only one column in SQLite3. When I remove a last field of the model, I get an error like below *django.db.utils.OperationalError: near ")": syntax error*Anyone knows about this issue ? -- You received this

Re: Timezone import error

2015-11-29 Thread monoBOT
Hello Ahmed you are using the get method, get can only return 1 item and its returning more than 1 in your case 2, thats the second error, but there is an import error also somewhere in your code, but the traceback you are sending is not concluyent. 2015-11-29 15:11 GMT+00:00 : > Hi, > > I'm pra

Re: Timezone import error

2015-11-29 Thread knbk
Hi Ahmed, When an error happens in an expect: block, python 3 shows the original error caught by the try/expect block, as well as the new error. In this case, the ImportError is the original error, and it's nothing you should worry about: Django catches it and handles it accordingly. Admittedly

Timezone import error

2015-11-29 Thread ahmed . abdullah . bh
Hi, I'm practicing Django v 1.8.6 (Writing your first Django app, part 1) and getting error when trying to import timezone, also I have installed pytz, when I try to use the import timezone package I'm getting ImportError. My settings.py has USE_TZ set to true by default, also, I had to change