summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGeorg Bauer <gb@hugo.westfalen.de>2005-10-17 19:45:56 +0000
committerGeorg Bauer <gb@hugo.westfalen.de>2005-10-17 19:45:56 +0000
commitc63aae3cff0b8fec03c0b4c31d43830863ee5772 (patch)
treed9504df0c5460959ff9990e9352c72968222fe26 /docs
parenta26e6a4d75062fef392440ec80e9331be5fbf12b (diff)
i18n: added hint on order for locale middleware
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@916 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/translation.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/translation.txt b/docs/translation.txt
index 534563b881..6339ab44dc 100644
--- a/docs/translation.txt
+++ b/docs/translation.txt
@@ -182,7 +182,10 @@ want to have a single translation active, you want to decide what language to
present to each and every user. This is where the LocaleMiddleware comes
into the picture. You need to add it to your middleware setting. It should
be one of the first middlewares installed, but it should come after the
-session middleware - that's because it makes uses of the session data.
+session middleware - that's because it makes uses of the session data. And
+it must be installed before the AdminUserRequired middleware, as that will
+do redirects based on not-logged-in state and so the LocaleMiddleware won't
+ever see the login page (and so not initialize the language correctly).
So your middleware settings might look like this::