[Answered ]-No content in django HttpResponseBadRequest

2👍

You should override the constructor in your subclass instead of defining content as a class variable.

For example:

 def __init__(self):
         super(django.http.HttpResponseBadRequest, self).__init__("Must add content before making this request.")

Leave a comment