[snowy] Enable the locale middleware



commit 73b7893ef5efbae73c4c9194dccc0531e23ce858
Author: Brad Taylor <brad getcoded net>
Date:   Mon Jul 20 15:55:43 2009 -0400

    Enable the locale middleware

 settings.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/settings.py b/settings.py
index 0a54bfe..98875f7 100644
--- a/settings.py
+++ b/settings.py
@@ -38,6 +38,11 @@ SITE_ID = 1
 # to load the internationalization machinery.
 USE_I18N = True
 
+LANGUAGES = (
+    ('ru', 'Russian'),
+    ('en', 'English'),
+)
+
 # Absolute path to the directory that holds media.
 # Example: "/home/media/media.lawrence.com/"
 MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'site_media')
@@ -75,6 +80,7 @@ MIDDLEWARE_CLASSES = (
     'django.contrib.csrf.middleware.CsrfViewMiddleware',
     'django.contrib.csrf.middleware.CsrfResponseMiddleware',
     'django.contrib.sessions.middleware.SessionMiddleware',
+    'django.middleware.locale.LocaleMiddleware',
     'django.contrib.auth.middleware.AuthenticationMiddleware',
     'django.middleware.transaction.TransactionMiddleware',
     'reversion.middleware.RevisionMiddleware',



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]