helios-server icon indicating copy to clipboard operation
helios-server copied to clipboard

django.shortcuts: render_to_response is deprecated / dropped in 3.0

Open cboltz opened this issue 4 years ago • 0 comments

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

cboltz avatar Nov 14 '21 17:11 cboltz