Guest User

Untitled

a guest
Apr 10th, 2020
157
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from flask import Blueprint
  2. from flask import render_template
  3.  
  4. page = Blueprint ('page', __name__)
  5.  
  6. @page.app_errorhandler(404)
  7. def page_not_found(error):
  8.     return render_template('errors/404.html'), 404
  9.  
  10. @page.route('/')
  11. def index():
  12.     return render_template('index.html')
RAW Paste Data