from flask import render_template
@app.errorhandler(404)
def page_not_found(error):
return render_template('page_not_found.html'), 404
Flask Error Handler
Shortcut: flask.errorhandler
0 Comments
Add Comment
Log in to add a comment
from flask import render_template
@app.errorhandler(404)
def page_not_found(error):
return render_template('page_not_found.html'), 404
Flask Error Handler
Shortcut: flask.errorhandler
Log in to add a comment