view function 的几种返回值 return HttpResponse(html)return HttpResponseNotFound(html)raise Http404("Poll does not exist") #定制:在template tree顶层编写404.htmlhandler400 转载于:https://www.cnblogs.com/LTEF/p/9736816.html