Better order for middleware
See https://docs.djangoproject.com/en/1.6/topics/i18n/translation/#how-django-discovers-language-preference
This commit is contained in:
parent
190f2ddc27
commit
26e9f39748
1 changed files with 6 additions and 1 deletions
|
@ -135,8 +135,13 @@ TEMPLATE_LOADERS = (
|
|||
# Middleware
|
||||
#==============================================================================
|
||||
|
||||
MIDDLEWARE_CLASSES += (
|
||||
MIDDLEWARE_CLASSES = (
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.middleware.locale.LocaleMiddleware',
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
'django.middleware.csrf.CsrfViewMiddleware',
|
||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||
'django.contrib.messages.middleware.MessageMiddleware',
|
||||
'django.middleware.http.ConditionalGetMiddleware',
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue