From 9e895c339a9c4c3919aa98a01730286727663643 Mon Sep 17 00:00:00 2001 From: Rushil Umaretiya <2023rumareti@tjhsst.edu> Date: Wed, 21 Oct 2020 14:23:07 -0400 Subject: [PATCH] added debug to secrets --- config/settings.py | 7 ++++--- my_secrets/definitions.py | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config/settings.py b/config/settings.py index 25d8ec0..42d3b27 100644 --- a/config/settings.py +++ b/config/settings.py @@ -21,10 +21,11 @@ BASE_DIR = Path(__file__).resolve().parent.parent # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True - -ALLOWED_HOSTS = [] +if DEBUG: + ALLOWED_HOSTS = ['*'] +else: + ALLOWED_HOSTS = ['tj2023.sites.tjhsst.edu'] # Application definition diff --git a/my_secrets/definitions.py b/my_secrets/definitions.py index 3c4e567..5ad295b 100644 --- a/my_secrets/definitions.py +++ b/my_secrets/definitions.py @@ -7,6 +7,7 @@ SECRET_KEYS = [ # start with your Django secret key like this: + 'DEBUG', "SECRET_KEY", "NOTION_URL", "NOTION_COOKIE",