Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

django.shortcuts: render_to_response is deprecated / dropped in 3.0 #340

Open
cboltz opened this issue Nov 14, 2021 · 0 comments
Open

django.shortcuts: render_to_response is deprecated / dropped in 3.0 #340

cboltz opened this issue Nov 14, 2021 · 0 comments

Comments

@cboltz
Copy link

cboltz commented Nov 14, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant