mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #15010 -- Added current_app parameter to close gap between TemplateResponse and render method. Thanks, acdha.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15153 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
093009bf1f
commit
a3894945b6
9 changed files with 62 additions and 7 deletions
|
@ -15,7 +15,7 @@ introduce controlled coupling for convenience's sake.
|
|||
``render``
|
||||
==========
|
||||
|
||||
.. function:: render(request, template[, dictionary][, context_instance][, content_type][, status])
|
||||
.. function:: render(request, template[, dictionary][, context_instance][, content_type][, status][, current_app])
|
||||
|
||||
.. versionadded:: 1.3
|
||||
|
||||
|
@ -23,7 +23,7 @@ introduce controlled coupling for convenience's sake.
|
|||
:class:`~django.http.HttpResponse` object with that rendered text.
|
||||
|
||||
:func:`render()` is the same as a call to
|
||||
:func:`render_to_response()` with a context_instance argument that
|
||||
:func:`render_to_response()` with a `context_instance` argument that
|
||||
that forces the use of a :class:`RequestContext`.
|
||||
|
||||
Required arguments
|
||||
|
@ -55,6 +55,11 @@ Optional arguments
|
|||
``status``
|
||||
The status code for the response. Defaults to ``200``.
|
||||
|
||||
``current_app``
|
||||
A hint indicating which application contains the current view. See the
|
||||
:ref:`namespaced URL resolution strategy <topics-http-reversing-url-namespaces>`
|
||||
for more information.
|
||||
|
||||
Example
|
||||
-------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue