1👍
Use dj_database_url
, as described here. To wit:
$ pip install dj-database-url
and then in settings.py
:
import dj_database_url
DATABASES['default'] = dj_database_url.config()
You can pass config
a default
argument if you don’t want to set DATABASE_URL
locally. More info is available here.