Skip to content Skip to sidebar Skip to footer

Django The View Didn't Return An Httpresponse Object. It Returned None Instead

Trying to check if variable 'avail.end_time:' is empty,and if so redirect to a url. But instead, I get 'The view mysite.views.enter_queue didn't return an HttpResponse object. It

Solution 1:

HttpResponseRedirect should take a URL instead of a HttpResponse object which you are returning with render()


Post a Comment for "Django The View Didn't Return An Httpresponse Object. It Returned None Instead"