Filtering UI
[prawokultury.git] / prawokultury / settings.d / 40-middleware.py
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     'honeypot.middleware.HoneypotMiddleware',
9     'django.contrib.auth.middleware.AuthenticationMiddleware',
10 )
11
12 if 'django_cas' in INSTALLED_APPS:
13     MIDDLEWARE_CLASSES += (
14         'django_cas.middleware.CASMiddleware',
15     )
16
17 MIDDLEWARE_CLASSES += (
18     'django.contrib.messages.middleware.MessageMiddleware',
19     'piwik.django.middleware.PiwikMiddleware',
20     # Uncomment the next line for simple clickjacking protection:
21     # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
22     'pagination.middleware.PaginationMiddleware',
23     'fnpdjango.middleware.SetRemoteAddrFromXRealIP',
24 )
25
26