from django.http import HttpResponse
示例
return HttpResponse("Text only, please.", content_type="text/plain")
可以向其中加内容
>>> response = HttpResponse()
>>> response.write("<p>Here's the text of the Web page.</p>")
>>> response.write("<p>Here's another paragraph.</p>")