From 20a86b53c4d82df9b032e7d5b5ba7c3055ec4914 Mon Sep 17 00:00:00 2001 From: Bobby Date: Tue, 19 Jul 2022 20:08:27 +0530 Subject: Change Secret Key and Dev Environment Settings --- thatcomputerscientist/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thatcomputerscientist/settings.py b/thatcomputerscientist/settings.py index 1919d566..c4339fdc 100644 --- a/thatcomputerscientist/settings.py +++ b/thatcomputerscientist/settings.py @@ -24,10 +24,10 @@ BASE_DIR = Path(__file__).resolve().parent.parent # See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'django-insecure--8^hnd!ymuui4c2hu0$x9_j@eylb2tpr1xiq@xr2a(2vfwc=2_' +SECRET_KEY = os.getenv('AUTHORIZATION_STRING') # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = os.getenv('ENVIRONMENT') == 'development' or False ALLOWED_HOSTS = ["*"] CSRF_TRUSTED_ORIGINS = ['https://*.thatcomputerscientist.com', 'https://*.thatcomputerscientist.fly.dev/'] -- cgit v1.2.3