diff options
| author | Gabriel Hurley <gabehr@gmail.com> | 2010-10-10 06:37:19 +0000 |
|---|---|---|
| committer | Gabriel Hurley <gabehr@gmail.com> | 2010-10-10 06:37:19 +0000 |
| commit | 95d0ffbb0f96c3f77a64459a2922739d44819896 (patch) | |
| tree | 65821834685798e317872165eb0d3a80eb4e6d02 /docs | |
| parent | 7de577093c0c510926c0ee4bf6b1452c250f3441 (diff) | |
[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
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/settings.txt | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt index b5556deac8..d5425a3221 100644 --- a/docs/ref/settings.txt +++ b/docs/ref/settings.txt @@ -96,9 +96,14 @@ APPEND_SLASH Default: ``True`` -Whether to append trailing slashes to URLs. This is only used if -``CommonMiddleware`` is installed (see :doc:`/topics/http/middleware`). See also -``PREPEND_WWW``. +When set to ``True``, if the request URL does not match any of the patterns +in the URLconf and it doesn't end in a slash, an HTTP redirect is issued to the +same URL with a slash appended. Note that the redirect may cause any data +submitted in a POST request to be lost. + +The ``APPEND_SLASH`` setting is only used if +:class:`~django.middleware.common.CommonMiddleware` is installed +(see :doc:`/topics/http/middleware`). See also :setting:`PREPEND_WWW`. .. setting:: AUTHENTICATION_BACKENDS @@ -1180,8 +1185,8 @@ PREPEND_WWW Default: ``False`` Whether to prepend the "www." subdomain to URLs that don't have it. This is only -used if ``CommonMiddleware`` is installed (see :doc:`/topics/http/middleware`). -See also ``APPEND_SLASH``. +used if :class:`~django.middleware.common.CommonMiddleware` is installed +(see :doc:`/topics/http/middleware`). See also :setting:`APPEND_SLASH`. .. setting:: PROFANITIES_LIST |
