adding LocaleMiddleWare and the amo i18n processor
This commit is contained in:
Родитель
1f9d2966ba
Коммит
9955eb9ff4
10
settings.py
10
settings.py
|
@ -64,9 +64,19 @@ TEMPLATE_LOADERS = (
|
||||||
MIDDLEWARE_CLASSES = (
|
MIDDLEWARE_CLASSES = (
|
||||||
'django.middleware.common.CommonMiddleware',
|
'django.middleware.common.CommonMiddleware',
|
||||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||||
|
'django.middleware.locale.LocaleMiddleware',
|
||||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
TEMPLATE_CONTEXT_PROCESSORS = (
|
||||||
|
'django.core.context_processors.auth',
|
||||||
|
'django.core.context_processors.debug',
|
||||||
|
'django.core.context_processors.media',
|
||||||
|
'django.core.context_processors.request',
|
||||||
|
|
||||||
|
'amo.context_processors.i18n',
|
||||||
|
)
|
||||||
|
|
||||||
ROOT_URLCONF = 'zamboni.urls'
|
ROOT_URLCONF = 'zamboni.urls'
|
||||||
|
|
||||||
TEMPLATE_DIRS = (
|
TEMPLATE_DIRS = (
|
||||||
|
|
Загрузка…
Ссылка в новой задаче