2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 02:47:24 +00:00

Moved secrets to credentials.py

This commit is contained in:
Philip Sargent
2021-03-31 13:00:09 +01:00
parent b3b2356a7e
commit 577bd51613
3 changed files with 167 additions and 4 deletions

View File

@@ -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