Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #14228 -- Added additional information on what the APPEND_SLASH…

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

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14110 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 888168003a78577290094d3c0f290fe87f18342e 1 parent 06bad9e
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
 
@@ -1214,8 +1219,8 @@ PREPEND_WWW
1214 1219
 Default: ``False``
1215 1220
 
1216 1221
 Whether to prepend the "www." subdomain to URLs that don't have it. This is only
1217  
-used if ``CommonMiddleware`` is installed (see :doc:`/topics/http/middleware`).
1218  
-See also ``APPEND_SLASH``.
  1222
+used if :class:`~django.middleware.common.CommonMiddleware` is installed
  1223
+(see :doc:`/topics/http/middleware`). See also :setting:`APPEND_SLASH`.
1219 1224
 
1220 1225
 .. setting:: PROFANITIES_LIST
1221 1226
 

0 notes on commit 8881680

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