photofloat/scanner/floatapp/__init__.py
Jason A. Donenfeld d33715066a Restructuring
Import flask app as well as new makefile and entirely new directory
structure.
2014-03-12 17:28:59 -06:00

11 lines
281 B
Python

from flask import Flask
from flask_login import LoginManager
import os.path
app = Flask(__name__)
app.config.from_pyfile(os.path.join(os.path.dirname(os.path.abspath(__file__)), "app.cfg"))
login_manager = LoginManager()
import login
login_manager.setup_app(app)
import endpoints