from flask import render_template

def init_app(app):
    @app.errorhandler(404)
    def not_found(error):
        return render_template('errors/404.html'), 404
from flask import render_template

def init_app(app):
    @app.errorhandler(404)
    def not_found(error):
        return render_template('errors/404.html'), 404