summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2017-05-22 14:55:02 +0200
committerJelle van der Waa <jelle@vdwaa.nl>2017-05-22 14:58:12 +0200
commit9f7ad1aa841ea038a1ca540624d334816b8c8e84 (patch)
tree96fcf4d65263e183d1c73295c2c77582853a8dd3
parent4a7db9346417923bcb75f8e4daf7e55ef155df6f (diff)
downloadarchweb-9f7ad1aa841ea038a1ca540624d334816b8c8e84.tar.gz
archweb-9f7ad1aa841ea038a1ca540624d334816b8c8e84.zip
Allow templates to be debugged locally
template debugging was never enabled, since TEMPLATES where defined before the local_settings where imported. So move the TEMPLATES definition under the local_settings import.
-rw-r--r--settings.py38
1 files changed, 19 insertions, 19 deletions
diff --git a/settings.py b/settings.py
index dd9384a3..e59fb753 100644
--- a/settings.py
+++ b/settings.py
@@ -44,25 +44,6 @@ LOGIN_REDIRECT_URL = '/'
# Set django's User stuff to use our profile model
AUTH_PROFILE_MODULE = 'devel.UserProfile'
-TEMPLATES = [
- {
- 'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [
- path.join(DEPLOY_PATH, 'templates')
- ],
- 'APP_DIRS': True,
- 'OPTIONS': {
- 'debug': DEBUG,
- 'context_processors': [
- 'django.contrib.auth.context_processors.auth',
- 'django.core.context_processors.debug',
- 'django.contrib.messages.context_processors.messages',
- 'main.context_processors.secure',
- ],
- }
- }
-]
-
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
@@ -189,6 +170,25 @@ try:
except ImportError:
pass
+TEMPLATES = [
+ {
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
+ 'DIRS': [
+ path.join(DEPLOY_PATH, 'templates')
+ ],
+ 'APP_DIRS': True,
+ 'OPTIONS': {
+ 'debug': DEBUG,
+ 'context_processors': [
+ 'django.contrib.auth.context_processors.auth',
+ 'django.core.context_processors.debug',
+ 'django.contrib.messages.context_processors.messages',
+ 'main.context_processors.secure',
+ ],
+ }
+ }
+]
+
# Enable the debug toolbar if requested
if DEBUG_TOOLBAR:
MIDDLEWARE_CLASSES = \