workout-movement-counting icon indicating copy to clipboard operation
workout-movement-counting copied to clipboard

ImportError: cannot import name 'render_to_response'

Open gohjiayi opened this issue 4 years ago • 2 comments

Any idea on how to solve this error? I tried on both windows and linux but same results. Went online and some suggested that it may be the version of django installed. FYI: I wasn't able to install the requirements through the command line so I did it manually via pip install. Any help is appreciated, I am currently working on a similar project.

File "/home/jy/workout-movement-counting/WorkoutApp/workout_page/views.py", line 1, in <module>
    from django.shortcuts import render, render_to_response, redirect
ImportError: cannot import name 'render_to_response'

gohjiayi avatar May 29 '20 10:05 gohjiayi