From e331f01431d15ce6ae931e5039ade3fde03ec55b Mon Sep 17 00:00:00 2001 From: Tanner Prestegard <tanner.prestegard@ligo.org> Date: Fri, 6 Jan 2017 14:58:25 -0600 Subject: [PATCH] small additional modernization of TEMPLATE settings --- settings/default.py | 12 ++++++------ settings/test.py | 2 -- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/settings/default.py b/settings/default.py index fe4fed459..6188c7445 100644 --- a/settings/default.py +++ b/settings/default.py @@ -13,7 +13,6 @@ USE_TZ = True ALLOWED_HOSTS = ['*'] DEBUG = False -TEMPLATE_DEBUG = DEBUG MAINTENANCE_MODE = False ADMINS = ( @@ -242,15 +241,16 @@ TEMPLATES = [ ], 'APP_DIRS': True, 'OPTIONS': { + 'debug': True, 'context_processors': [ # Defaults 'django.contrib.auth.context_processors.auth', - 'django.core.context_processors.debug', - 'django.core.context_processors.i18n', - 'django.core.context_processors.media', - 'django.core.context_processors.static', + 'django.template.context_processors.debug', + 'django.template.context_processors.i18n', + 'django.template.context_processors.media', + 'django.template.context_processors.static', # Extra additions - 'django.core.context_processors.request', + 'django.template.context_processors.request', 'gracedb.middleware.auth.LigoAuthContext', 'middleware.debug.LigoDebugContext', 'ligoauth.context_processors.shib_login_url', diff --git a/settings/test.py b/settings/test.py index ed4e677d4..e268f8316 100644 --- a/settings/test.py +++ b/settings/test.py @@ -4,8 +4,6 @@ CONFIG_NAME = "TEST" # Debug settings DEBUG = True -# Template debugging help -TEMPLATE_DEBUG = DEBUG # Don't let debug toolbar edit settings DEBUG_TOOLBAR_PATCH_SETTINGS = False -- GitLab