From 31357c667430524d30212719605516f112561fcb Mon Sep 17 00:00:00 2001 From: Tom Price Date: Thu, 30 Apr 2015 22:52:30 +0100 Subject: [PATCH] Move to using enviromental variables for important settings. This makes it more difficult to fuck up. --- PyRIGS/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PyRIGS/settings.py b/PyRIGS/settings.py index 9f78c9cf..8345160c 100644 --- a/PyRIGS/settings.py +++ b/PyRIGS/settings.py @@ -18,10 +18,10 @@ SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') # See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'gxhy(a#5mhp289_=6xx$7jh=eh$ymxg^ymc+di*0c*geiu3p_e' +SECRET_KEY = os.environ.get('SECRET_KEY') if os.environ.get('SECRET_KEY') else 'gxhy(a#5mhp289_=6xx$7jh=eh$ymxg^ymc+di*0c*geiu3p_e' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = False +DEBUG = bool(int(os.environ.get('DEBUG'))) if os.environ.get('DEBUG') else True TEMPLATE_DEBUG = True