Search code examples
djangopostgresqlheroku

Relation does not Exist/ Programming Error in django


My this django WebApp works fine in Local development but when I tried it in production it says relation does not exist, I am probably sure it would be the problem with data base connection in production, it is sqlite3 on local but in production on heroku it is postgresql and I am unable to make it functional properly even I modified database connectivity in settings.py from sqlite3 to postgresql by applying new provided database credentials

ScreenShot


Solution

  • Did you run a migration after connecting the new database? Looks like the table it looking for does not exists.