自定义404错误
@app.errorhandler(404)
def error404(e):
return render_template(‘404.html‘)
文档:http://docs.jinkan.org/docs/flask/patterns/errorpages.html
标签:doc ror source att body error logs pytho markdown
@app.errorhandler(404)
def error404(e):
return render_template(‘404.html‘)
文档:http://docs.jinkan.org/docs/flask/patterns/errorpages.html
标签:doc ror source att body error logs pytho markdown
原文地址:https://www.cnblogs.com/xb21/p/8386116.html