def create_app(self): print "create_app" return create_app(cfg='config/test.cfg')
from flaskr_app import create_app from flaskr_app.models import db app = create_app() db.create_all(app=app)