1👍
✅
The problem is in the render_to_reponse()
call. You do not pass the RequesContext
instance so context processors aren’t run for your templates.
The simplest solution for this issue is to replace the render_to_response()
with the render()
:
return render(request, "evaluation_index.html", {"evals":evals})
and:
return render(request, "one_evaluation_index.html", c)
Source:stackexchange.com