nk logo
[emels.git] / emels / settings / middleware.py
1 # -*- coding: utf-8 -*-
2 from emels.utils import process_app_deps
3
4 MIDDLEWARE_CLASSES = process_app_deps((
5     'django.middleware.cache.UpdateCacheMiddleware',
6     ('django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.sessions'),
7     # 'django.middleware.locale.LocaleMiddleware',
8     'fnpdjango.middleware.URLLocaleMiddleware',
9
10     'django.middleware.common.CommonMiddleware',
11     'django.middleware.csrf.CsrfViewMiddleware',
12     ('django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth'),
13     ('django_cas.middleware.CASMiddleware', 'django_cas'),
14     ('django.contrib.messages.middleware.MessageMiddleware', 'django.contrib.messages'),
15     # Uncomment the next line for simple clickjacking protection:
16     # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
17     'django.middleware.cache.FetchFromCacheMiddleware',
18     'fnp_django_pagination.middleware.PaginationMiddleware',
19     'fnpdjango.middleware.SetRemoteAddrFromXRealIP',
20 ))