This commit is contained in:
commit
95a533c876
451 changed files with 18255 additions and 0 deletions
17
templates/dev/flask-hello/flask_hello/__init__.py
Normal file
17
templates/dev/flask-hello/flask_hello/__init__.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue