from flask import Flask from flask_login import LoginManager import myprecious.constants as c from myprecious.db import init_db app = Flask(__name__) login_manager = LoginManager(app) app.debug=c.DEBUG_SWITCH app.secret_key = c.SECRET_KEY app.config['SESSION_TYPE'] = 'filesystem' init_db() import myprecious.views