<reponame>philcoder/poc_movie_recommendation<gh_stars>0
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager

app = Flask(__name__)
app.config['SECRET_KEY'] = '<EMAIL>.<EMAIL>'
app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://root:phil.p<EMAIL>@postgres-service:5432/poc_db'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
db = SQLAlchemy(app)
migrate = Migrate(app, db)

login = LoginManager(app)
#sent to index all protect urls
login.login_view = 'index'

from app import routes, models