django.shortcuts: render_to_response is deprecated / dropped in 3.0
cboltz opened this issue · comments
Christian Boltz commented
Trying to run the tests on openSUSE Tumbleweed (rolling release with latest version of everything), I get
ImportError: cannot import name 'render_to_response' from 'django.shortcuts'
render_to_response
was deprecated in Django 2.0 and removed in Django 3.0
As usual ;-) StackOverflow explains how to fix that - basically replace render_to_response
with render
(and adjust the parameters).
render_to_response
is used in the following files (according to a git grep
in master):
- helios_auth/view_utils.py
- helios/view_utils.py
- server_ui/view_utils.py