|
|
@ -62,6 +62,7 @@ INSTALLED_APPS = [ |
|
|
MIDDLEWARE = [ |
|
|
MIDDLEWARE = [ |
|
|
'django.middleware.security.SecurityMiddleware', |
|
|
'django.middleware.security.SecurityMiddleware', |
|
|
'django.contrib.sessions.middleware.SessionMiddleware', |
|
|
'django.contrib.sessions.middleware.SessionMiddleware', |
|
|
|
|
|
'django.middleware.locale.LocaleMiddleware', |
|
|
'django.middleware.common.CommonMiddleware', |
|
|
'django.middleware.common.CommonMiddleware', |
|
|
'django.middleware.csrf.CsrfViewMiddleware', |
|
|
'django.middleware.csrf.CsrfViewMiddleware', |
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware', |
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware', |
|
|
@ -83,6 +84,7 @@ TEMPLATES = [ |
|
|
'django.template.context_processors.request', |
|
|
'django.template.context_processors.request', |
|
|
'django.contrib.auth.context_processors.auth', |
|
|
'django.contrib.auth.context_processors.auth', |
|
|
'django.contrib.messages.context_processors.messages', |
|
|
'django.contrib.messages.context_processors.messages', |
|
|
|
|
|
'django.template.context_processors.i18n', |
|
|
'taskapp.context_proc.get_active_tasks_count', |
|
|
'taskapp.context_proc.get_active_tasks_count', |
|
|
'msg_app.context_processors.get_new_messages_count' |
|
|
'msg_app.context_processors.get_new_messages_count' |
|
|
], |
|
|
], |
|
|
@ -125,7 +127,7 @@ SESSION_COOKIE_HTTPONLY = True |
|
|
# Internationalization |
|
|
# Internationalization |
|
|
# https://docs.djangoproject.com/en/1.11/topics/i18n/ |
|
|
# https://docs.djangoproject.com/en/1.11/topics/i18n/ |
|
|
|
|
|
|
|
|
LANGUAGE_CODE = 'ru-RU' |
|
|
|
|
|
|
|
|
LANGUAGE_CODE = 'ru' |
|
|
|
|
|
|
|
|
LANGUAGES = [ |
|
|
LANGUAGES = [ |
|
|
('ru', _('Russian')), |
|
|
('ru', _('Russian')), |
|
|
|