Skip to content

Commit

Permalink
Settings or value
Browse files Browse the repository at this point in the history
  • Loading branch information
cxrxixs committed May 11, 2024
1 parent e769b3a commit 62fb6f7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@
REDIS_HOST = env("REDIS_HOST")
REDIS_PORT = env("REDIS_PORT")
else:
DB_NAME = os.environ.get("DB_NAME")
DB_NAME = os.environ.get("DB_NAME") or os.environ.get("POSTGRES_DB")
DB_USER = os.environ.get("DB_USER")
DB_PASSWORD = os.environ.get("DB_PASSWORD")
DB_PASSWORD = os.environ.get("DB_PASSWORD") or os.environ.get(
"POSTGRES_PASSWORD"
)
DB_HOST = os.environ.get("DB_HOST")
DB_PORT = os.environ.get("DB_PORT")
DB_PORT = os.environ.get("DB_PORT") or os.environ.get("POSTGRES_PORT")
REDIS_HOST = os.environ.get("REDIS_HOST")
REDIS_PORT = os.environ.get("REDIS_PORT")

Expand Down

0 comments on commit 62fb6f7

Please sign in to comment.