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.

17 lines
346 B

  1. from flask import render_template
  2. from . import main
  3. @main.app_errorhandler(403)
  4. def forbidden(e):
  5. return render_template('403.html'), 403
  6. @main.app_errorhandler(404)
  7. def page_not_found(e):
  8. return render_template('404.html'), 404
  9. @main.app_errorhandler(500)
  10. def internal_server_error(e):
  11. return render_template('500.html'), 500