3f46f7cc0a3848831bd63011736561dd5612266b
[edumed.git] / edumed / settings / middleware.py
1 # -*- coding: utf-8 -*-
2 from edumed.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     'subdomains.middleware.SubdomainURLRoutingMiddleware',
9     'fnpdjango.middleware.URLLocaleMiddleware',
10
11     'django.middleware.common.CommonMiddleware',
12     'django.middleware.csrf.CsrfViewMiddleware',
13     ('django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth'),
14     ('django_cas.middleware.CASMiddleware', 'django_cas'),
15     ('django.contrib.messages.middleware.MessageMiddleware', 'django.contrib.messages'),
16     # Uncomment the next line for simple clickjacking protection:
17     # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
18     ('pagination.middleware.PaginationMiddleware', 'pagination'),
19     'django.middleware.cache.FetchFromCacheMiddleware',
20     'fnpdjango.middleware.SetRemoteAddrFromXRealIP',
21     # 'pybb.middleware.PybbMiddleware',
22     # 'forum.middleware.ForumMiddleware',
23     'wtem.middleware.ThreadLocalMiddleware'
24 ))