Relation Does Not Exist - Django & Postgres
I added some table to an existant model, but I got an error when i push my project to heroku : This happens to any models I add on this particular app ProgrammingError at /admin/
Solution 1:
This worked for me
- heroku run bash
- python manage.py makemigrations
- python manage.py migrate
Solution 2:
I got the same error when landing on a template getting data from my database, after having resetted my database from Heroku dashboard.
I solved it by doing:
- python manage.py makemigrations
- python manage.py migrate
- git add .
- git push -m "upload empty database"
- git push heroku master
Post a Comment for "Relation Does Not Exist - Django & Postgres"