17 lines
323 B
Python
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
|