mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-14 10:13:13 +00:00
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:
parent
f79c108582
commit
5a4ad20597
2 changed files with 8 additions and 2 deletions
|
|
@ -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 }}'
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue