enable local settings
This commit is contained in:
@@ -4,3 +4,4 @@ static/
|
||||
__pycache__
|
||||
.vscode/
|
||||
.DS_Store
|
||||
rad/settings_local.py
|
||||
|
||||
+7
-2
@@ -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
|
||||
Reference in New Issue
Block a user