]> git.datanom.net - pwp.git/blame - app/__init__.py
Half way through migration away from sqlalchemy
[pwp.git] / app / __init__.py
CommitLineData
e5424f29
MR
1from flask import Flask
2from flask_bootstrap import Bootstrap
fc01a3eb 3from config import DB_DRIVER, DB_PASSWORD, DB_USER, DB_DATABASE, DB_HOST, DB_PORT
e5424f29
MR
4from flask_login import LoginManager
5from flask_wtf.csrf import CSRFProtect
e5424f29
MR
6app = Flask(__name__)
7app.config.from_object('config')
8lm = LoginManager()
9lm.init_app(app)
10lm.login_view = 'login'
11bootstrap = Bootstrap(app)
12csrf = CSRFProtect()
13csrf.init_app(app)
14
fc01a3eb
MR
15from db import DB
16db = DB(DB_PASSWORD, DB_DRIVER, DB_USER, DB_DATABASE, DB_HOST, DB_PORT)
e5424f29
MR
17
18from app import views, models
19lm.anonymous_user = models.MyAnonymous
20
This page took 0.058247 seconds and 5 git commands to generate.