summaryrefslogtreecommitdiff
path: root/docs/api/view.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-09-30 04:15:39 +0000
committerChris McDonough <chrism@agendaless.com>2009-09-30 04:15:39 +0000
commit3a61a378e03ae3a5b44ce326aac56b159a15bfa1 (patch)
tree1a3e1c968694056fccf400ccd13530fb344d6d60 /docs/api/view.rst
parentd75fe70228c89e3606e51a4d5775faf549252a90 (diff)
downloadpyramid-3a61a378e03ae3a5b44ce326aac56b159a15bfa1.tar.gz
pyramid-3a61a378e03ae3a5b44ce326aac56b159a15bfa1.tar.bz2
pyramid-3a61a378e03ae3a5b44ce326aac56b159a15bfa1.zip
- For behavior like Django's ``APPEND_SLASH=True``, use the
``repoze.bfg.view.append_slash_notfound_view`` view as the Not Found view in your application. When this view is the Not Found view (indicating that no view was found), and any routes have been defined in the configuration of your application, if the value of ``PATH_INFO`` does not already end in a slash, and if the value of ``PATH_INFO`` *plus* a slash matches any route's path, do an HTTP redirect to the slash-appended PATH_INFO. Note that this will *lose* ``POST`` data information (turning it into a GET), so you shouldn't rely on this to redirect POST requests.
Diffstat (limited to 'docs/api/view.rst')
-rw-r--r--docs/api/view.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/api/view.rst b/docs/api/view.rst
index 40c69d24b..e345a0015 100644
--- a/docs/api/view.rst
+++ b/docs/api/view.rst
@@ -19,3 +19,6 @@
.. autoclass:: static
:members:
+ .. autofunction:: append_slash_notfound_view
+
+