This commit is contained in:
Trey t
2023-06-26 13:14:47 -05:00
parent a3a6f0cb86
commit 12f9a73def
2 changed files with 2 additions and 2 deletions

View File

@@ -141,7 +141,7 @@ if os.environ.get("DATABASE_URL"):
# }
CSRF_TRUSTED_ORIGINS = ['https://*.werkout.fitness']
SECRET_KEY = os.environ.get("SECRET_KEY", 'secret')
SECRET_KEY = o.environ.get("SECRET_KEY", 'secret')
# Parse the DATABASE_URL env var.
USER, PASSWORD, HOST, PORT, NAME = re.match("^postgres://(?P<username>.*?)\:(?P<password>.*?)\@(?P<host>.*?)\:(?P<port>\d+)\/(?P<db>.*?)$", os.environ.get("DATABASE_URL", "")).groups()