Kaydet (Commit) f685f94c authored tarafından johannes-gehrs's avatar johannes-gehrs Kaydeden (comit) Tim Graham

Fixed #21580 -- Clarified why render() does not return a TemplateResponse object.

üst ccd80dc3
...@@ -24,6 +24,11 @@ introduce controlled coupling for convenience's sake. ...@@ -24,6 +24,11 @@ introduce controlled coupling for convenience's sake.
:func:`render_to_response()` with a ``context_instance`` argument that :func:`render_to_response()` with a ``context_instance`` argument that
forces the use of a :class:`~django.template.RequestContext`. forces the use of a :class:`~django.template.RequestContext`.
Django does not provide a shortcut function which returns a
:class:`~django.template.response.TemplateResponse` because the constructor
of :class:`~django.template.response.TemplateResponse` offers the same level
of convenience as :func:`render()`.
Required arguments Required arguments
------------------ ------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment