2 'django.contrib.sessions.middleware.SessionMiddleware',
3 #'django.middleware.locale.LocaleMiddleware',
4 'fnpdjango.middleware.URLLocaleMiddleware',
6 'django.middleware.common.CommonMiddleware',
7 'django.middleware.csrf.CsrfViewMiddleware',
8 'django.contrib.auth.middleware.AuthenticationMiddleware',
11 if 'django_cas' in INSTALLED_APPS:
12 MIDDLEWARE_CLASSES += (
13 'django_cas.middleware.CASMiddleware',
16 MIDDLEWARE_CLASSES += (
17 'django.contrib.messages.middleware.MessageMiddleware',
20 if 'piwik.django' in INSTALLED_APPS:
21 MIDDLEWARE_CLASSES += (
22 'piwik.django.middleware.PiwikMiddleware',
25 MIDDLEWARE_CLASSES += (
26 # Uncomment the next line for simple clickjacking protection:
27 # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
28 'pagination.middleware.PaginationMiddleware',
29 # Comment out if not behind proxy setting the Real-IP header (like Nginx).
30 'fnpdjango.middleware.SetRemoteAddrFromXRealIP',