ti-powerbar/app/__init__.py
2023-11-19 01:07:25 +01:00

9 lines
270 B
Python

from flask import Flask, request, redirect, url_for, render_template
from app.views import routes
def create_app():
# create and configure the app
app = Flask(__name__)
app.config.from_pyfile('settings.py')
app.register_blueprint(routes)
return app