Django

Code

Changeset 916

Show
Ignore:
Timestamp:
10/17/05 14:45:56 (3 years ago)
Author:
hugo
Message:

i18n: added hint on order for locale middleware

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/i18n/docs/translation.txt

    r915 r916  
    183183into the picture. You need to add it to your middleware setting. It should 
    184184be one of the first middlewares installed, but it should come after the 
    185 session middleware - that's because it makes uses of the session data. 
     185session middleware - that's because it makes uses of the session data. And 
     186it must be installed before the AdminUserRequired middleware, as that will 
     187do redirects based on not-logged-in state and so the LocaleMiddleware won't 
     188ever see the login page (and so not initialize the language correctly). 
    186189 
    187190So your middleware settings might look like this::