1
0
forked from finn/site
site/backend/app/__init__.py

16 lines
349 B
Python
Raw Normal View History

2024-08-01 06:56:27 +00:00
from flask import Flask
2024-08-01 10:33:45 +00:00
from config import Config
2024-08-01 13:35:28 +00:00
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
2024-08-01 18:10:49 +00:00
from flask_login import LoginManager
2024-08-01 06:56:27 +00:00
app = Flask(__name__)
2024-08-01 10:33:45 +00:00
app.config.from_object(Config)
2024-08-01 13:35:28 +00:00
db = SQLAlchemy(app)
migrate = Migrate(app, db)
2024-08-01 18:10:49 +00:00
login = LoginManager(app)
login.login_view = 'login'
2024-08-01 06:56:27 +00:00
2024-08-01 13:35:28 +00:00
from app import routes, models
2024-08-01 06:56:27 +00:00