diff options
author | 2019-07-03 16:51:14 +0200 | |
---|---|---|
committer | 2019-07-03 16:51:14 +0200 | |
commit | 13960a506debd3efc7cce8d6475d36cbaccd2bbe (patch) | |
tree | 7bd0a36b6b35da0c3bcce934fc3d5c6e4e23e6a7 | |
parent | removing possible hardcoded passwords (diff) |
Replacing hardcoded secret keys with token_urlsafe calls.
-rw-r--r-- | pydis_site/settings.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pydis_site/settings.py b/pydis_site/settings.py index d38da34e..5cc4dd99 100644 --- a/pydis_site/settings.py +++ b/pydis_site/settings.py @@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os +import secrets import sys import environ @@ -36,11 +37,11 @@ if DEBUG: 'staff.pythondiscord.local', 'wiki.pythondiscord.local', ] - SECRET_KEY = "yellow polkadot bikini" + SECRET_KEY = secrets.token_urlsafe(32) elif 'CI' in os.environ: ALLOWED_HOSTS = ['*'] - SECRET_KEY = "yellow polkadot bikini" + SECRET_KEY = secrets.token_urlsafe(32) else: ALLOWED_HOSTS = env.list( |