Django Heroku and postgresql

Viewed 579

I am new to publishing django apps on heroku. I have read their tutorials and figured I would start simple by modifying their template django project.

So far everything was good.

Then I made an app as one does, made a model and ran

python3 manage.py makemigrations my_app
python3 manage.py migrate

and things seemed ok.

I then pushed to heroku and there were no immediate complaints.

However, now when I try to make save a new model I get the error:

ProgrammingError at /my_app/
relation "my_app_myappmodel" does not exist
LINE 1: INSERT INTO "my_app_myappmodel" ("field1", "field2", "field3") VALUES...

odd...

So I run this locally and everything works fine.

I have tried cleaning my migrations, faking my migrations, squashing my migrations, etc (as other S.O. posts suggest)

Nothing works.

What is up and how do I fix it?

2 Answers
Related