added debug to secrets

This commit is contained in:
Rushil Umaretiya 2020-10-21 14:23:07 -04:00
parent 71704bc53c
commit 9e895c339a
2 changed files with 5 additions and 3 deletions

View File

@ -21,10 +21,11 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
# SECURITY WARNING: don't run with debug turned on in production! # 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 # Application definition

View File

@ -7,6 +7,7 @@
SECRET_KEYS = [ SECRET_KEYS = [
# start with your Django secret key like this: # start with your Django secret key like this:
'DEBUG',
"SECRET_KEY", "SECRET_KEY",
"NOTION_URL", "NOTION_URL",
"NOTION_COOKIE", "NOTION_COOKIE",