[Django]-Unable to make RDS queries on heroku

1👍

I had a similar issue, also for a Django on Heroku app. I used the heroku-django-template to create my app. In settings.py, the default database is overwritten by the environment variable DATABASE_URL.

You can either disable that in the settings.py or set the env var to the correct value.

2👍

The Error is because of table doesn’t exists in Database, that means you need to migrate the database models. For Further reference read django migrations here

Database migrations in heroku is done by this way, specify the line in Procfile file.

release: python manage.py migrate
web: gunicorn col.wsgi --log-file -

So Whenever you deploy a new code, heroku will automatically migrate the DB models. For further reference, check here.
let me know if this works.

Leave a comment