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

2014-03-26 Thread Sami Razi
i used python manage.py sqlall 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

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

2014-03-26 Thread Sam Walters
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? If so check the db sheme using: python manage.py sqlall It sounds simple enough. You will have to go into the db shell and update your schema manually. usin

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

2014-03-26 Thread Sami Razi
i'm learning django using djangobook , in chapter 6, i'm having this error: IntegrityError at /admin/books/book/add/ NOT NULL constraint failed: books_book.publication_date it seems i should set null=True for publication_date field. but i did it alrea