Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
radiopanik
panikweb
Commits
586dba98
Commit
586dba98
authored
Sep 12, 2013
by
fred
Browse files
fix positioning of strip piwik cookie middleware
parent
0f8e5706
Changes
1
Hide whitespace changes
Inline
Side-by-side
panikweb/settings.py
View file @
586dba98
...
...
@@ -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
=
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment