From 13960a506debd3efc7cce8d6475d36cbaccd2bbe Mon Sep 17 00:00:00 2001 From: Leon Sandøy Date: Wed, 3 Jul 2019 16:51:14 +0200 Subject: Replacing hardcoded secret keys with token_urlsafe calls. --- pydis_site/settings.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pydis_site') 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( -- cgit v1.2.3