mirror of
https://github.com/django/django.git
synced 2025-07-23 21:25:40 +00:00
Refs #25978 -- Removed shortcuts.render_to_response() per deprecation timeline.
This commit is contained in:
parent
944469939b
commit
573ec714e5
6 changed files with 3 additions and 113 deletions
|
@ -238,6 +238,8 @@ to remove usage of these features.
|
|||
|
||||
* The ``django.db.backends.postgresql_psycopg2`` module is removed.
|
||||
|
||||
* ``django.shortcuts.render_to_response()`` is removed.
|
||||
|
||||
See :ref:`deprecated-features-2.1` for details on these changes, including how
|
||||
to remove usage of these features.
|
||||
|
||||
|
|
|
@ -81,17 +81,6 @@ This example is equivalent to::
|
|||
c = {'foo': 'bar'}
|
||||
return HttpResponse(t.render(c, request), content_type='application/xhtml+xml')
|
||||
|
||||
``render_to_response()``
|
||||
========================
|
||||
|
||||
.. 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.
|
||||
|
||||
``redirect()``
|
||||
==============
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue