all repos — myprecious @ 8b59845ab9b9df4c76efe688a18d9418435fa850

A lightweight web service to backup precious game saves.

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