import os

from flask import flask
from flask_sqlalchemy import flask_sqlalchemy
from flask_migrate import flask_migrate
from flask_login import LoginManager

login_manager = LoginManager()

app =Flask(__name__)

app.config['SECRET_KEY'] = 'guessitifyoucan'

basedir = os.path.abspath(os.path.dirname(__file__))
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///'+os.path

app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False

db = SQLAlchemy(app)

Migrate(app,db)

login_manager.init_app(app)

login_manager.login_view = 'login'
