myprecious/__init__.py (view raw)
1from flask import Flask
2from flask_login import LoginManager
3import myprecious.Constants as c
4from myprecious.Db import init_db
5
6app = Flask(__name__)
7login_manager = LoginManager(app)
8
9app.debug=c.DEBUG_SWITCH
10app.secret_key = c.SECRET_KEY
11app.config['SESSION_TYPE'] = 'filesystem'
12init_db()
13
14import myprecious.views