diff options
| author | Bobby <[email protected]> | 2022-07-19 20:08:27 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-07-19 20:08:27 +0530 |
| commit | 20a86b53c4d82df9b032e7d5b5ba7c3055ec4914 (patch) | |
| tree | 90739b7081dfee7e4e55982f829a6172c1ec85f4 | |
| parent | 82cc3c55fc5dd6329f934b70934a68756e9f6e24 (diff) | |
| download | thatcomputerscientist-20a86b53c4d82df9b032e7d5b5ba7c3055ec4914.tar.xz thatcomputerscientist-20a86b53c4d82df9b032e7d5b5ba7c3055ec4914.zip | |
Change Secret Key and Dev Environment Settings
| -rw-r--r-- | thatcomputerscientist/settings.py | 4 |
1 files 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/'] |
