Beispiel #1
0
def create_app():
    app = Flask(__name__)
    config.init_app(app)
    toolbar.init_app(app)
    site.init_app(app)
    #admin.init_app(app)
    return app
Beispiel #2
0
def create_app():
    """Factory to create a Flask app based on factory pattern"""
    app = Flask(__name__)
    config.init_app(app)
    db.init_app(app)
    cli.init_app(app)
    toolbar.init_app(app)
    site.init_app(app)
    return app
Beispiel #3
0
def create_app():
    app = Flask(__name__)
    config.init_app(app)
    db.init_app(app)
    auth.init_app(app)
    admin.init_app(app)
    cli.init_app(app)
    toolbar.init_app(app)
    site.init_app(app)
    hooks.init_app(app)
    return app
Beispiel #4
0
def create_app():
    """factory principal"""
    app = Flask(__name__)
    site.init_app(app)
    return app
Beispiel #5
0
def create_app():
    app = Flask(__name__)
    site.init_app(app)
    return app