Add heroku compatibility

Recognize heroku with the environment variable DATABASE_URL, parse it and replace the others based on it.
This commit is contained in:
Thomas Letsch Groch
2020-06-01 18:41:39 -03:00
parent 1b344fb90c
commit b234ef2917
6 changed files with 173 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ DB_PORT=5432
EMAIL_HOST_USER=example
EMAIL_HOST_PASSWORD=example_password
EMAIL_HOST=smtp.example.com
EMAIL_PORT=465
SERVER_EMAIL=<Shynet> noreply@shynet.example.com
# General Django settings