adding LocaleMiddleWare and the amo i18n processor

This commit is contained in:
Jeff Balogh 2009-10-21 14:48:38 -07:00
Родитель 1f9d2966ba
Коммит 9955eb9ff4
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -64,9 +64,19 @@ TEMPLATE_LOADERS = (
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'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'
TEMPLATE_DIRS = (