Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django.db.utils.IntegrityError: NOT NULL constraint failed

Go to the migrations folder and delete manually files that have 000*_lastAction_blah-blah type of name, you can delete, probably all, but 0001_initial.py file. After that run ./manage.py make migrations app_you_are_updateing, it should update your database.
 
PREVIOUS NEXT
Tagged: #NOT #NULL #constraint #failed
ADD COMMENT
Topic
Name
1+2 =