×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: kushedow Кушедов
Added: Oct 17, 2021 7:47 PM
Views: 2193
Tags: error flask
  1. @app.errorhandler(404)
  2. def page_not_found(e):
  3.     # note that we set the 404 status explicitly
  4.     return render_template('404.html'), 404