enable local settings

This commit is contained in:
Ross
2021-01-07 15:36:12 +00:00
parent abff3d61f6
commit 401d31c3e6
2 changed files with 8 additions and 2 deletions
+1
View File
@@ -4,3 +4,4 @@ static/
__pycache__
.vscode/
.DS_Store
rad/settings_local.py
+7 -2
View File
@@ -23,7 +23,7 @@ with open('/etc/secret_key') as f:
SECRET_KEY = f.read().strip()
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False
ALLOWED_HOSTS = ["localhost", "127.0.0.1", "161.35.163.87", "penracourses.org.uk"]
@@ -193,4 +193,9 @@ THUMBNAIL_ALIASES = {
'': {
'exam-list': {'size': (50, 50), 'crop': True},
},
}
}
try:
from .settings_local import *
except ImportError:
pass