Re: IntegrityError: NOT NULL constraint failed

2020-05-27 Thread sunday honesty
re > new_comment.save() > > > > *De: *sunday honesty > *Enviado:*quarta-feira, 27 de maio de 2020 19:36 > *Para: *Django users > *Assunto: *IntegrityError: NOT NULL constraint failed > > > > I try to let user add comments to blog post am making... When I run &

RES: IntegrityError: NOT NULL constraint failed

2020-05-27 Thread Samuel Nogueira
: IntegrityError: NOT NULL constraint failedĀ I try to let user add comments to blog post am making... When I run makemigrations and migrate, everything seemed fine . The form displayed well but shows the following error when I fill the form and click on the submit button. Django.db.utils.IntegrityError

IntegrityError: NOT NULL constraint failed

2020-05-27 Thread sunday honesty
I try to let user add comments to blog post am making... When I run makemigrations and migrate, everything seemed fine . The form displayed well but shows the following error when I fill the form and click on the submit button. Django.db.utils.IntegrityError: NOT NULL constraint failed: blog_co

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