2020-01-08 05:51:10 +01:00
|
|
|
from flask import Flask
|
2020-01-08 21:31:00 +01:00
|
|
|
from config import Config
|
|
|
|
from flask_sqlalchemy import SQLAlchemy
|
2020-01-09 03:17:31 +01:00
|
|
|
from flask_login import LoginManager
|
2020-01-09 05:20:50 +01:00
|
|
|
from flask_bootstrap import Bootstrap
|
2020-01-08 05:51:10 +01:00
|
|
|
|
|
|
|
app = Flask(__name__)
|
2020-01-08 21:31:00 +01:00
|
|
|
app.config.from_object(Config)
|
|
|
|
db = SQLAlchemy(app)
|
2020-01-09 03:17:31 +01:00
|
|
|
login = LoginManager(app)
|
|
|
|
login.login_view = "login"
|
2020-01-09 05:20:50 +01:00
|
|
|
bootstrap = Bootstrap(app)
|
2020-01-08 21:31:00 +01:00
|
|
|
|
2020-01-09 05:20:50 +01:00
|
|
|
from app import routes, models, errors
|