Django 1.11
[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     'prawokultury.middleware.ExemptableHoneypotViewMiddleware',
9     'honeypot.middleware.HoneypotResponseMiddleware',
10     'django.contrib.auth.middleware.AuthenticationMiddleware',
11     'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
12     'django_cas_ng.middleware.CASMiddleware',
13     'django.contrib.messages.middleware.MessageMiddleware',
14     # Uncomment the next line for simple clickjacking protection:
15     # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
16     'fnp_django_pagination.middleware.PaginationMiddleware',
17     'fnpdjango.middleware.SetRemoteAddrFromXRealIP',
18 )
19
20