ValueError The view myapp.MyView didn't return an HttpResponse object. It returned None instead.

Raised by:

django/core/handlers/base.py (line 130)

Traceback (most recent call last):
  File "python2.7/site-packages/django/core/handlers/base.py", line 130, in get_response
    % (callback.__module__, view_name))
ValueError: The view myapp.MyView didn't return an HttpResponse object. It returned None instead.

How to fix

Make sure your view is returning a HttpResponse. If you're using a class based views, make sure your dispatch method and get/post other methods were correctly overridden, i.e., are returning a HttpResponse (PS: the result of self.render_to_response(context) is a HttpResponse).