synix/templates/dev/flask-hello/flask_hello/__init__.py
sid 95a533c876
All checks were successful
Deploy docs / build-and-deploy (push) Successful in 3s
initial commit
2026-02-23 20:34:35 +01:00

17 lines
339 B
Python

from flask import Flask
def create_app():
app = Flask(__name__)
from .blueprints.home import home_bp
app.register_blueprint(home_bp)
from flask import render_template
@app.errorhandler(404)
def not_found_error(error):
return render_template("errors.html", error="Page not found"), 404
return app