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.

12 lines
254 B

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