Open payton opened 6 years ago
Hello,
your production.env config should have variable: DATABASE_URL=postgres://postgres@postgres:5432/postgres
I'm having issue as @payton even with the DATABASE_URL
set in the local .env
file, do you know what else could be the issue?
Edit: This may help: https://stackoverflow.com/questions/16868451/how-to-set-up-database-for-django-app-on-heroku
having the same issue but everyone seems to be quite, help!
hi. I seem to be getting the same issue when deploying to Heroku. Could this be a problem with Heroku not setting the DATABASE_URL for some reason?
I'm new to Django, so I don't quite know how to go about this error that occurs when I try to make migrations:
I manually added the engine value, but this step also wasn't mentioned anywhere in the development instructions, so perhaps it is something else I did wrong? Any help would be greatly appreciated.
Thanks!
UPDATE: In
dj_database_url.py
, the lines = os.environ.get(env, default)
just returns None, so the function returns an empty dictionary as the config.