Wednesday, March 26, 2014

Re: IntegrityError --- NOT NULL constraint failed: books_book.publication_date

i used

python manage.py sqlall <appname>

you're right sam, when i set null to true, it doesn't really change.
thank you so very much.
i'm a newbie with databases and i don't know what statements sould i use... i don't know the syntax...
i would install south. thank you.

 thank you so very much.
but i'm a newbie with databases, should i type something like this in the dbshell?

UPDATE BOOKS_BOOK SET PUBLICATION_DATE NULL=TRUE

On Wednesday, March 26, 2014 11:40:03 AM UTC-4, Sam Walters wrote:
Did you perhaps change the schema of the database after you had created it.

Eg: added null=True as a constraint after creating the table?

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b25a8c37-5f05-4f9a-bd5b-d9875469db7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment