Skip to content
Extraits de code Groupes Projets
Valider 8fa4028d rédigé par Yohan Boniface's avatar Yohan Boniface
Parcourir les fichiers

Activate locale middleware

parent dbe887df
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
# -*- coding:utf-8 -*-
"""Base settings shared by all environments""" """Base settings shared by all environments"""
# Import global settings to make it easier to extend settings. # Import global settings to make it easier to extend settings.
from django.conf.global_settings import * # pylint: disable=W0614,W0401 from django.conf.global_settings import * # pylint: disable=W0614,W0401
...@@ -19,6 +21,7 @@ USE_L10N = True ...@@ -19,6 +21,7 @@ USE_L10N = True
LANGUAGE_CODE = 'en' LANGUAGE_CODE = 'en'
LANGUAGES = ( LANGUAGES = (
('en', 'English'), ('en', 'English'),
('fr', u'Francais'),
) )
# Make this unique, and don't share it with anybody. # Make this unique, and don't share it with anybody.
...@@ -117,7 +120,7 @@ TEMPLATE_CONTEXT_PROCESSORS += ( ...@@ -117,7 +120,7 @@ TEMPLATE_CONTEXT_PROCESSORS += (
#============================================================================== #==============================================================================
MIDDLEWARE_CLASSES += ( MIDDLEWARE_CLASSES += (
# 'django.middleware.transaction.TransactionMiddleware', 'django.middleware.locale.LocaleMiddleware',
) )
#============================================================================== #==============================================================================
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter