2017-09-05 06:23:07 +00:00
|
|
|
from flask import Flask
|
2017-09-11 21:30:21 +00:00
|
|
|
from flask_sqlalchemy import SQLAlchemy
|
|
|
|
from flask_migrate import Migrate
|
2017-09-13 06:31:39 +00:00
|
|
|
from flask_login import LoginManager
|
2017-09-05 07:04:56 +00:00
|
|
|
from config import Config
|
2017-09-05 06:23:07 +00:00
|
|
|
|
|
|
|
app = Flask(__name__)
|
2017-09-05 07:04:56 +00:00
|
|
|
app.config.from_object(Config)
|
2017-09-11 21:30:21 +00:00
|
|
|
db = SQLAlchemy(app)
|
|
|
|
migrate = Migrate(app, db)
|
2017-09-13 06:31:39 +00:00
|
|
|
login = LoginManager(app)
|
|
|
|
login.login_view = 'login'
|
2017-09-05 06:23:07 +00:00
|
|
|
|
2017-09-11 21:30:21 +00:00
|
|
|
from app import routes, models
|