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
This commit is contained in:
parent
06bad9e37e
commit
888168003a
|
@ -96,9 +96,14 @@ APPEND_SLASH
|
||||||
|
|
||||||
Default: ``True``
|
Default: ``True``
|
||||||
|
|
||||||
Whether to append trailing slashes to URLs. This is only used if
|
When set to ``True``, if the request URL does not match any of the patterns
|
||||||
``CommonMiddleware`` is installed (see :doc:`/topics/http/middleware`). See also
|
in the URLconf and it doesn't end in a slash, an HTTP redirect is issued to the
|
||||||
``PREPEND_WWW``.
|
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
|
.. setting:: AUTHENTICATION_BACKENDS
|
||||||
|
|
||||||
|
@ -1214,8 +1219,8 @@ PREPEND_WWW
|
||||||
Default: ``False``
|
Default: ``False``
|
||||||
|
|
||||||
Whether to prepend the "www." subdomain to URLs that don't have it. This is only
|
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`).
|
used if :class:`~django.middleware.common.CommonMiddleware` is installed
|
||||||
See also ``APPEND_SLASH``.
|
(see :doc:`/topics/http/middleware`). See also :setting:`APPEND_SLASH`.
|
||||||
|
|
||||||
.. setting:: PROFANITIES_LIST
|
.. setting:: PROFANITIES_LIST
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue