django中400.html和500.html错误页面的设置
400.html和500.html错误页面的设置:1.templates中设置400.html和500.html2.设置views.pydef page_not_found(request): return render(request, '404.html')def page_error(request): return render(request, '500.htm...