I run python manage.py makemigrations
and I get:
No changes detected
Then, python manage.py migrate
and I get:
No migrations to apply.
Then, I try to push the changes to production: git push heroku master Everything up-to-date
Then, in production, I repeat the command: heroku run python manage.py migrate No migrations to apply.
Just in case, I run makemigrations
in production:
heroku run python manage.py makemigrations
No changes detected
WHY then I get a
ProgrammingError at ....
column .... does not exist
"No changes detected" means the database is coherent with the code. How can I debug this???
See Question&Answers more detail:os