flask-server/kinolist/__init__.py
2024-10-08 19:26:26 +02:00

17 lines
323 B
Python

import os
from dotenv import load_dotenv
from flask import Flask
from kinolist import pages, database, login
load_dotenv()
def create_app():
app = Flask(__name__)
app.config.from_prefixed_env()
login.login_manager.init_app(app)
database.init_app(app)
app.register_blueprint(pages.bp)
return app