You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
281 B

2 years ago
  1. from flask import render_template, Flask
  2. def configure_app(app: Flask):
  3. @app.errorhandler(404)
  4. def handler_404(msg):
  5. return render_template("errors/404.html")
  6. @app.errorhandler(403)
  7. def handler_403(msg):
  8. return render_template("errors/403.html")