mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #16175 -- Modified the sitemaps views to return TemplateResponse instances for easier customization. Thanks, mat.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16476 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
60f0421ed3
commit
54552ee29f
2 changed files with 16 additions and 8 deletions
|
@ -313,6 +313,15 @@ parameter to the ``sitemap`` and ``index`` views via the URLconf::
|
|||
}),
|
||||
)
|
||||
|
||||
|
||||
.. versionchanged:: 1.4
|
||||
|
||||
In addition, these views also return
|
||||
:class:`~django.template.response.TemplateResponse`
|
||||
instances which allow you to easily customize the response data before
|
||||
rendering. For more details, see the
|
||||
:doc:`TemplateResponse documentation </ref/template-response>`.
|
||||
|
||||
Context variables
|
||||
------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue