django.db.utils.IntegrityError: column "pinned" of relation "blog_post" contains null values
I migrated and did everything in localhost and Heroku server but I don't know how to solve this error.
django.db.utils.IntegrityError: column "pinned" of relation "blog_post" contains null values
I migrated and did everything in localhost and Heroku server but I don't know how to solve this error.
If column 'pinned' of blog__post is a non-nullable field, there is an entry in your database that is null for 'pinned'. Locate the entry and give it a value.
Use heroku run python manage.py makemigrations
to create migrations on heroku server then you run heroku run python manage.py migrate
to update your database tables.