flask-server/kinolist/__init__.py

17 lines
323 B
Python
Raw Normal View History

2024-10-08 13:20:00 -04:00
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