From 577bd51613a7940cdf3fd5f2a64683fb3d2ba2d6 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 31 Mar 2021 13:00:09 +0100 Subject: Moved secrets to credentials.py --- settings.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'settings.py') diff --git a/settings.py b/settings.py index 8203147..af9c18d 100644 --- a/settings.py +++ b/settings.py @@ -21,6 +21,10 @@ import django print("* importing troggle/settings.py") +# default value, then gets overwritten by real secrets +SECRET_KEY = "not-the-real-secret-key-a#vaeozn0---^fj!355qki*vj2" +from credentials import SECRET_KEY + # Note that this builds upon the django system installed # global settings in # django/conf/global_settings.py which is automatically loaded first. @@ -31,7 +35,7 @@ print("* importing troggle/settings.py") # Django settings for troggle project. -ALLOWED_HOSTS = ['expo.survex.com', '.survex.com', 'localhost', '127.0.0.1', '192.168.0.5' ] +ALLOWED_HOSTS = ['*', 'expo.survex.com', '.survex.com', 'localhost', '127.0.0.1', '192.168.0.5' ] ADMINS = ( # ('Your Name', 'your_email@domain.com'), @@ -103,8 +107,6 @@ LOGBOOK_PARSER_SETTINGS = { APPEND_SLASH = False SMART_APPEND_SLASH = True -# Make this unique, and don't share it with anybody. -SECRET_KEY = "not-the-real-secret-key-a#vaeozn0---^fj!355qki*vj2" LOGIN_REDIRECT_URL = '/' SECURE_CONTENT_TYPE_NOSNIFF = True -- cgit v1.2.3