This commit is contained in:
Trey t
2023-06-26 13:18:29 -05:00
parent 12f9a73def
commit f27a50ad72
2 changed files with 3 additions and 2 deletions

View File

@@ -121,6 +121,7 @@ MEDIA_ROOT = os.path.join(BASE_DIR, "media")
if os.environ.get("DATABASE_URL"):
print("------0-0-0-0----------0-0-0-0---------")
ALLOWED_HOSTS = ['*']
# if os.environ.get("IS_DEV"):
@@ -141,7 +142,7 @@ if os.environ.get("DATABASE_URL"):
# }
CSRF_TRUSTED_ORIGINS = ['https://*.werkout.fitness']
SECRET_KEY = o.environ.get("SECRET_KEY", 'secret')
SECRET_KEY = os.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()