diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2021-03-31 13:00:09 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2021-03-31 13:00:09 +0100 |
commit | 577bd51613a7940cdf3fd5f2a64683fb3d2ba2d6 (patch) | |
tree | b8b2c25f881a887ef9a17ad0d89d184f5961f6a0 /settings.py | |
parent | b3b2356a7e6b0b6ebbb13057f987c4afbc032d31 (diff) | |
download | troggle-577bd51613a7940cdf3fd5f2a64683fb3d2ba2d6.tar.gz troggle-577bd51613a7940cdf3fd5f2a64683fb3d2ba2d6.tar.bz2 troggle-577bd51613a7940cdf3fd5f2a64683fb3d2ba2d6.zip |
Moved secrets to credentials.py
Diffstat (limited to 'settings.py')
-rw-r--r-- | settings.py | 8 |
1 files changed, 5 insertions, 3 deletions
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 |