def create_response ( self , request , content , content_type ) : return HttpResponse ( content = content , content_type = content_type )
return httpresponse python django
Returns a response object for the request . Can be overridden to return different responses .
def create_response(self, request, content, content_type):
        """Returns a response object for the request. Can be overridden to return different responses."""

        return HttpResponse(content=content, content_type=content_type)