django.db.utils.IntegrityError: column contains null values 1

django.db.utils.IntegrityError: column contains null values

1) Drop the problematic columns from your local table
3) Delete all the migration files you created for these columns change
4) execute python manage.py makemigrations
5) execute python manage.py migrate

Here is what the above code is Doing:
1. It’s deleting the migration files that were created for the problematic columns
2. It’s deleting the problematic columns from the local table
3. It’s creating new migration files for the changes
4. It’s applying the new migration files

Similar Posts