7f6ba739911f6768db98f29d7f138a8978e50ba9
[fnp-django-template.git] / src / src / project_name / settings / middleware.py
1
2 MIDDLEWARE_CLASSES = [
3     'django.contrib.sessions.middleware.SessionMiddleware',
4     #'django.middleware.locale.LocaleMiddleware',
5     'fnpdjango.middleware.URLLocaleMiddleware',
6
7     'django.middleware.common.CommonMiddleware',
8     'django.middleware.csrf.CsrfViewMiddleware',
9     'django.contrib.auth.middleware.AuthenticationMiddleware',
10     'django_cas_ng.middleware.CASMiddleware', # Remove if not using CAS.
11     'django.contrib.messages.middleware.MessageMiddleware',
12     # Uncomment the next line for simple clickjacking protection:
13     # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
14     'fnpdjango.middleware.SetRemoteAddrFromXRealIP'
15 ]