Author: carljm Date: 2011-10-07 08:48:30 -0700 (Fri, 07 Oct 2011) New Revision: 16938
Modified: django/trunk/docs/ref/contrib/flatpages.txt Log: Corrected backwards middleware-ordering note in flatpage documentation. Modified: django/trunk/docs/ref/contrib/flatpages.txt =================================================================== --- django/trunk/docs/ref/contrib/flatpages.txt 2011-10-07 15:45:52 UTC (rev 16937) +++ django/trunk/docs/ref/contrib/flatpages.txt 2011-10-07 15:48:30 UTC (rev 16938) @@ -102,9 +102,12 @@ 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>`. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.