Commit 16d6ae16 authored by fred's avatar fred

settings: update MIDDLEWARE settings name

parent c21ba826
......@@ -99,7 +99,7 @@ STATICFILES_FINDERS = (
# Make this unique, and don't share it with anybody.
SECRET_KEY = '3qm&@6264-=st16)7_xa*ds+31e0mqqs@+*!ud7gzt$tq!b^qn'
MIDDLEWARE_CLASSES = (
MIDDLEWARE = (
'django.middleware.cache.UpdateCacheMiddleware',
#'django.middleware.gzip.GZipMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
......@@ -259,22 +259,20 @@ if os.path.exists(local_settings_file):
exec(open(local_settings_file).read())
if DEBUG and DEBUG_TOOLBAR:
MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
MIDDLEWARE += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
INSTALLED_APPS += ('debug_toolbar',)
if 'template_timings_panel.panels.TemplateTimings.TemplateTimings' in DEBUG_TOOLBAR_PANELS:
INSTALLED_APPS += ('template_timings_panel',)
if ENABLE_PIWIK is False:
MIDDLEWARE_CLASSES = tuple(
[x for x in MIDDLEWARE_CLASSES if x != 'panikweb.middleware.StripPiwikCookieMiddleware']
)
MIDDLEWARE = tuple([x for x in MIDDLEWARE if x != 'panikweb.middleware.StripPiwikCookieMiddleware'])
if STATSD_CLIENT != 'django_statsd.clients.null':
MIDDLEWARE_CLASSES = (
MIDDLEWARE = (
'django_statsd.middleware.GraphiteRequestTimingMiddleware',
'django_statsd.middleware.GraphiteMiddleware',
) + MIDDLEWARE_CLASSES
) + MIDDLEWARE
INSTALLED_APPS += ('django_statsd',)
if RAVEN_CONFIG:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment