Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.2.X] Added additional information on what the APPEND_SLASH setting…

… does. Thanks to ttencate for the report and draft text.

Backport of [14110] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14111 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 95d0ffbb0f96c3f77a64459a2922739d44819896 1 parent 7de5770
authored October 10, 2010

Showing 1 changed file with 10 additions and 5 deletions. Show diff stats Hide diff stats

  1. 15  docs/ref/settings.txt
15  docs/ref/settings.txt
@@ -96,9 +96,14 @@ APPEND_SLASH
96 96
 
97 97
 Default: ``True``
98 98
 
99  
-Whether to append trailing slashes to URLs. This is only used if
100  
-``CommonMiddleware`` is installed (see :doc:`/topics/http/middleware`). See also
101  
-``PREPEND_WWW``.
  99
+When set to ``True``, if the request URL does not match any of the patterns 
  100
+in the URLconf and it doesn't end in a slash, an HTTP redirect is issued to the
  101
+same URL with a slash appended. Note that the redirect may cause any data 
  102
+submitted in a POST request to be lost.
  103
+
  104
+The ``APPEND_SLASH`` setting is only used if
  105
+:class:`~django.middleware.common.CommonMiddleware` is installed
  106
+(see :doc:`/topics/http/middleware`). See also :setting:`PREPEND_WWW`.
102 107
 
103 108
 .. setting:: AUTHENTICATION_BACKENDS
104 109
 
@@ -1180,8 +1185,8 @@ PREPEND_WWW
1180 1185
 Default: ``False``
1181 1186
 
1182 1187
 Whether to prepend the "www." subdomain to URLs that don't have it. This is only
1183  
-used if ``CommonMiddleware`` is installed (see :doc:`/topics/http/middleware`).
1184  
-See also ``APPEND_SLASH``.
  1188
+used if :class:`~django.middleware.common.CommonMiddleware` is installed
  1189
+(see :doc:`/topics/http/middleware`). See also :setting:`APPEND_SLASH`.
1185 1190
 
1186 1191
 .. setting:: PROFANITIES_LIST
1187 1192
 

0 notes on commit 95d0ffb

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