1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Corrected backwards middleware-ordering note in flatpage documentation.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16938 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Carl Meyer 2011-10-07 15:48:30 +00:00
parent 3f3010014b
commit 672f2db24a

View File

@ -102,9 +102,12 @@ does all of the work.
methods. Only requests which are successfully routed to a view via
normal URL resolution apply view middleware.
Note that the order of :setting:`MIDDLEWARE_CLASSES` matters. Generally, you can
put :class:`~django.contrib.flatpages.middleware.FlatpageFallbackMiddleware` at
the end of the list, because it's a last resort.
Note that the order of :setting:`MIDDLEWARE_CLASSES` matters. Generally, you
can put
:class:`~django.contrib.flatpages.middleware.FlatpageFallbackMiddleware` at the
end of the list. This means it will run first when processing the response, and
ensures that any other response-processing middlewares see the real flatpage
response rather than the 404.
For more on middleware, read the :doc:`middleware docs
</topics/http/middleware>`.