2012-12-16 08:30:41 +00:00
|
|
|
import os
|
2012-12-16 08:24:07 +00:00
|
|
|
from flask import Flask
|
2012-12-16 08:29:49 +00:00
|
|
|
from flask.ext.sqlalchemy import SQLAlchemy
|
2012-12-16 08:30:41 +00:00
|
|
|
from flask.ext.login import LoginManager
|
|
|
|
from flask.ext.openid import OpenID
|
|
|
|
from config import basedir
|
2012-12-16 08:24:07 +00:00
|
|
|
|
|
|
|
app = Flask(__name__)
|
2012-12-16 08:28:52 +00:00
|
|
|
app.config.from_object('config')
|
2012-12-16 08:29:49 +00:00
|
|
|
db = SQLAlchemy(app)
|
2012-12-16 08:30:41 +00:00
|
|
|
lm = LoginManager()
|
|
|
|
lm.setup_app(app)
|
|
|
|
lm.login_view = 'login'
|
|
|
|
oid = OpenID(app, os.path.join(basedir, 'tmp'))
|
2012-12-16 08:29:49 +00:00
|
|
|
|
|
|
|
from app import views, models
|
2012-12-16 08:28:52 +00:00
|
|
|
|