mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #25978 -- Deprecated shorcuts.render_to_response().
This commit is contained in:
parent
0166dd2f8c
commit
7b6e42089c
6 changed files with 58 additions and 36 deletions
|
@ -86,9 +86,11 @@ This example is equivalent to::
|
|||
|
||||
.. function:: render_to_response(template_name, context=None, content_type=None, status=None, using=None)
|
||||
|
||||
.. deprecated:: 2.0
|
||||
|
||||
This function preceded the introduction of :func:`render` and works
|
||||
similarly except that it doesn't make the ``request`` available in the
|
||||
response. It's not recommended and is likely to be deprecated in the future.
|
||||
response.
|
||||
|
||||
``redirect()``
|
||||
==============
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue