Flask

自定義404錯誤

@app.errorhandler(404)
def error404(e):
    return render_template('404.html')

文檔:http://docs.jinkan.org/docs/flask/patterns/errorpages.htmlhtml

相關文章
相關標籤/搜索