Skip to content

Commit

Permalink
fix: rename env DATABASE_URI to DATABASE_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
jakuboskera committed Jul 20, 2022
1 parent 95e7620 commit 4e2b7b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class Config(object):
class ProductionConfig(Config):
"""Production configuration"""

# if deployed to Heroku, injected env var DATABASE_URI is used
conn = os.environ.get("DATABASE_URI")
# if deployed to Heroku, injected env var DATABASE_URL is used
conn = os.environ.get("DATABASE_URL")
if conn is None:
conn = (
"postgresql://"
Expand Down

0 comments on commit 4e2b7b8

Please sign in to comment.