Enable switching locale on a per-request basis

This commit is contained in:
Sunil Mohan Adapa 2015-11-13 21:18:04 +05:30
parent 86c787feeb
commit 6c3c863619

View File

@ -229,6 +229,7 @@ def configure_django():
MESSAGE_TAGS={message_constants.ERROR: 'danger'},
MIDDLEWARE_CLASSES=(
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',