Skip to content Skip to sidebar Skip to footer

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

  1. heroku run bash
  2. python manage.py makemigrations
  3. 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:

  1. python manage.py makemigrations
  2. python manage.py migrate
  3. git add .
  4. git push -m "upload empty database"
  5. git push heroku master

Post a Comment for "Relation Does Not Exist - Django & Postgres"