Kaydet (Commit) 672f2db2 authored tarafından Carl Meyer's avatar Carl Meyer

Corrected backwards middleware-ordering note in flatpage documentation.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16938 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 3f301001
...@@ -102,9 +102,12 @@ does all of the work. ...@@ -102,9 +102,12 @@ does all of the work.
methods. Only requests which are successfully routed to a view via methods. Only requests which are successfully routed to a view via
normal URL resolution apply view middleware. normal URL resolution apply view middleware.
Note that the order of :setting:`MIDDLEWARE_CLASSES` matters. Generally, you can Note that the order of :setting:`MIDDLEWARE_CLASSES` matters. Generally, you
put :class:`~django.contrib.flatpages.middleware.FlatpageFallbackMiddleware` at can put
the end of the list, because it's a last resort. :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 For more on middleware, read the :doc:`middleware docs
</topics/http/middleware>`. </topics/http/middleware>`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment