【Python】Django 如何直接返回404 被 curl,wget 捕获到
代码示例:
from django.http import Http404, HttpResponseNotFound #raise Http404(filename) return HttpResponseNotFound("None")
参考资料:
http://blog.csdn.net/ei__nino/article/details/8566046
代码示例:
from django.http import Http404, HttpResponseNotFound #raise Http404(filename) return HttpResponseNotFound("None")
参考资料:
http://blog.csdn.net/ei__nino/article/details/8566046