diff options
| author | Carl Meyer <carl@oddbird.net> | 2011-10-07 15:48:30 +0000 |
|---|---|---|
| committer | Carl Meyer <carl@oddbird.net> | 2011-10-07 15:48:30 +0000 |
| commit | 672f2db24a90ab5da10213fffe149b31b43b1391 (patch) | |
| tree | acc32cd24932c7cf4c7f2503616436a45943db7d /docs | |
| parent | 3f3010014b33451553c62b005c2ec09a16a9f9ce (diff) | |
Corrected backwards middleware-ordering note in flatpage documentation.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16938 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/flatpages.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/ref/contrib/flatpages.txt b/docs/ref/contrib/flatpages.txt index 4a1f2970cb..00e2139afd 100644 --- a/docs/ref/contrib/flatpages.txt +++ b/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 </topics/http/middleware>`. |
