updated settings so that there is no decrepation warning

TEMPLATE_DEBUG is now an Option of every template
referenced in
https://docs.djangoproject.com/en/1.8/ref/settings/#template-debug
This commit is contained in:
Maximilian Stauss 2015-09-15 16:04:36 -04:00
parent f79c108582
commit 5a4ad20597
2 changed files with 8 additions and 2 deletions

View file

@ -3,7 +3,10 @@ from .base import *
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
TEMPLATE_DEBUG = True
DEBUG_TEMPLATE = True
for i in range(0, len(TEMPLATES) - 1):
TEMPLATES[i]['OPTIONS']['debug'] = DEBUG_TEMPLATE
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '{{ secret_key }}'

View file

@ -2,7 +2,10 @@ from .base import *
DEBUG = False
TEMPLATE_DEBUG = False
DEBUG_TEMPLATE = False
for i in range(0, len(TEMPLATES) - 1):
TEMPLATES[i]['OPTIONS']['debug'] = DEBUG_TEMPLATE
try: