Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.1.X] Fixed #12217: Documented the fact that serving flatpages from…

… the flatpage middleware does not apply view middleware methods. Backport of [12671] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12672 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 36e7739d9d08cd83c9cc6be56ea33443ac26b484 1 parent 7adae30
James Bennett authored March 03, 2010

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  docs/ref/contrib/flatpages.txt
8  docs/ref/contrib/flatpages.txt
@@ -80,6 +80,14 @@ If it doesn't find a match, the request continues to be processed as usual.
80 80
 The middleware only gets activated for 404s -- not for 500s or responses of any
81 81
 other status code.
82 82
 
  83
+.. admonition:: Flatpages will not apply view middleware
  84
+
  85
+   Because the ``FlatpageFallbackMiddleware`` is applied only after
  86
+   URL resolution has failed and produced a 404, the response it
  87
+   returns will not apply any :ref:`view middleware <view-middlware>`
  88
+   methods. Only requests which are successfully routed to a view via
  89
+   normal URL resolution apply view middleware.
  90
+
83 91
 Note that the order of :setting:`MIDDLEWARE_CLASSES` matters. Generally, you can
84 92
 put :class:`~django.contrib.flatpages.middleware.FlatpageFallbackMiddleware` at
85 93
 the end of the list, because it's a last resort.

0 notes on commit 36e7739

Please sign in to comment.
Something went wrong with that request. Please try again.