import os
from flask import Flask
from flask_login import LoginManager
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy


app = Flask(__name__)
app.config.from_object(os.environ.get('FLASK_CONFIG') or 'config.DevelopmentConfig')


db = SQLAlchemy(app)
# migrate = Migrate(app, db)
login_manager = LoginManager(app)
login_manager.init_app(app)
#login_manager.login_view = 'login'

# db.create_all()

from app import views, models
