The view didn’t return an HttpResponse object. It returned None instead

Because the view must return render, not just call it. (Note that render is a simple wrapper around an HttpResponse). Change the last line to

return render(request, 'auth_lifecycle/user_profile.html',
           context_instance=RequestContext(request))

(Also note the render(...) function returns a HttpResponse object behind the scenes.)

Leave a Comment