Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

HttpResponse Object Error in view.py

Error
The view rooms.views.all_rooms didn't return an HttpResponse object. It returned None instead.
solution
in your views.py import HttpResponse as following
from django.http import HttpResponse
def all_all(request)
return HttpResponse(content="hello")

later change this content to your html or whatsoever you want to respond on a specific view(page)
 
PREVIOUS NEXT
Tagged: #HttpResponse #Object #Error
ADD COMMENT
Topic
Name
8+1 =