Re: IntegrityError: NOT NULL constraint failed

2020-05-27 Thread sunday honesty
Thanks Samuel it worked On Thu, May 28, 2020, 12:23 AM Samuel Nogueira wrote: > In your Comment model you have a author field wich is a ForeignKey. The > error is pointing exactly to that field, since it is a not null field. To > overcome this you must pick the ID of the logged user and set the

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