1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-02-02 01:44:40 +00:00

settings.py: update translations setup according to django 1.5

This commit is contained in:
Hidden Z 2013-09-29 06:36:37 +00:00
parent 484cb5bee7
commit de9572895e

View File

@ -76,6 +76,11 @@ STATICFILES_DIRS = (
os.path.join(PROJECT_ROOT, "static-common"), os.path.join(PROJECT_ROOT, "static-common"),
) )
# Directories where Django looks for translation files
LOCALE_PATHS = (
os.path.join(PROJECT_ROOT, "locale"),
)
# List of callables that know how to import templates from various sources. # List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = ( TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader', 'django.template.loaders.filesystem.Loader',
@ -84,12 +89,12 @@ TEMPLATE_LOADERS = (
) )
MIDDLEWARE_CLASSES = ( MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware', 'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.locale.LocaleMiddleware',
) )
ROOT_URLCONF = 'pyi2phosts.urls' ROOT_URLCONF = 'pyi2phosts.urls'