Browse files

Corrected backwards middleware-ordering note in flatpage documentation.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 3f30100 commit 672f2db24a90ab5da10213fffe149b31b43b1391 @carljm carljm committed Oct 7, 2011
Showing with 6 additions and 3 deletions.
  1. +6 −3 docs/ref/contrib/flatpages.txt
@@ -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

0 comments on commit 672f2db

Please sign in to comment.