mirror of https://github.com/django/django.git
Added note about CacheMiddleware to docs/i18n.txt.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1117 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
371f63c210
commit
c6fd835137
|
@ -393,6 +393,7 @@ should follow these guidelines:
|
||||||
* Make sure it's one of the first middlewares installed.
|
* Make sure it's one of the first middlewares installed.
|
||||||
* It should come after ``SessionMiddleware``, because ``LocaleMiddleware``
|
* It should come after ``SessionMiddleware``, because ``LocaleMiddleware``
|
||||||
makes use of session data.
|
makes use of session data.
|
||||||
|
* If you use ``CacheMiddleware``, put ``LocaleMiddleware`` after it.
|
||||||
|
|
||||||
For example, your ``MIDDLEWARE_CLASSES`` might look like this::
|
For example, your ``MIDDLEWARE_CLASSES`` might look like this::
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue