summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d58d60e)
Also set ALLOW_HOSTS to '*'
.venv
__pycache__
db.sqlite3
.venv
__pycache__
db.sqlite3
+from dotenv import load_dotenv, find_dotenv
+load_dotenv(find_dotenv())
+
+import os
+
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
-SECRET_KEY = 'django-insecure-(bf$#80p=*wkj(yh$)3oec0nn#46k$8(m#hx4yx8d02kcog3$q'
+SECRET_KEY = str(os.getenv('PCDENOTES_SECRET_KEY'))
# SECURITY WARNING: don't run with debug turned on in production!
# SECURITY WARNING: don't run with debug turned on in production!
+DEBUG = str(os.getenv('PCDENOTES_DEBUG', 'false')).lower() == 'true'
packaging==21.3
pkg-resources==0.0.0
pyparsing==3.0.6
packaging==21.3
pkg-resources==0.0.0
pyparsing==3.0.6
pytz==2021.3
six==1.16.0
sqlparse==0.4.2
pytz==2021.3
six==1.16.0
sqlparse==0.4.2