mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Fixed #32124 -- Added per-view opt-out for APPEND_SLASH behavior.
This commit is contained in:
parent
3418092238
commit
ad11f5b8c9
9 changed files with 89 additions and 9 deletions
|
@ -121,3 +121,18 @@ client-side caching.
|
|||
This decorator adds a ``Cache-Control: max-age=0, no-cache, no-store,
|
||||
must-revalidate, private`` header to a response to indicate that a page
|
||||
should never be cached.
|
||||
|
||||
.. module:: django.views.decorators.common
|
||||
|
||||
Common
|
||||
======
|
||||
|
||||
.. versionadded:: 3.2
|
||||
|
||||
The decorators in :mod:`django.views.decorators.common` allow per-view
|
||||
customization of :class:`~django.middleware.common.CommonMiddleware` behavior.
|
||||
|
||||
.. function:: no_append_slash()
|
||||
|
||||
This decorator allows individual views to be excluded from
|
||||
:setting:`APPEND_SLASH` URL normalization.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue