Commit 586dba98 authored by fred's avatar fred

fix positioning of strip piwik cookie middleware

parent 0f8e5706
......@@ -111,6 +111,7 @@ MIDDLEWARE_CLASSES = (
'fiber.middleware.ObfuscateEmailAddressMiddleware',
'fiber.middleware.AdminPageMiddleware',
#'request.middleware.RequestMiddleware',
'panikweb.middleware.StripPiwikCookieMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware',
)
......@@ -214,8 +215,9 @@ if DEBUG and DEBUG_TOOLBAR:
'INTERCEPT_REDIRECTS': False,
}
if ENABLE_PIWIK:
MIDDLEWARE_CLASSES += ('panikweb.middleware.StripPiwikCookieMiddleware',)
if ENABLE_PIWIK is False:
MIDDLEWARE_CLASSES = tuple([x for x in MIDDLEWARE_CLASSES \
if x != 'panikweb.middleware.StripPiwikCookieMiddleware'])
if STATSD_CLIENT != 'django_statsd.clients.null':
MIDDLEWARE_CLASSES = (
......
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