47a889e8b9fb2198ea0e868d6d2fb97eae4412ff
[prawokultury.git] / prawokultury / settings.d / 40-middleware.conf
1 MIDDLEWARE_CLASSES = (
2     'django.contrib.sessions.middleware.SessionMiddleware',
3     #'django.middleware.locale.LocaleMiddleware',
4     'fnpdjango.middleware.URLLocaleMiddleware',
5
6     'django.middleware.common.CommonMiddleware',
7     'django.middleware.csrf.CsrfViewMiddleware',
8     'django.contrib.auth.middleware.AuthenticationMiddleware',
9 )
10
11 if 'django_cas' in INSTALLED_APPS:
12     MIDDLEWARE_CLASSES += (
13         'django_cas.middleware.CASMiddleware',
14     )
15
16 MIDDLEWARE_CLASSES += (
17     'django.contrib.messages.middleware.MessageMiddleware',
18     'piwik.django.middleware.PiwikMiddleware',
19     # Uncomment the next line for simple clickjacking protection:
20     # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
21     'pagination.middleware.PaginationMiddleware',
22     'fnpdjango.middleware.SetRemoteAddrFromXRealIP',
23 )
24
25