Exemplo n.º 1
0
def create_app():
    app = Flask(__name__)
    app.config.from_object('config')
    register_database(app)
    register_blueprint(app)
    init_login(app)
    create_admin(app, db)
    return app
Exemplo n.º 2
0
def create_app():
    app = Flask(__name__)
    app.config.from_object('config')
    register_database(app)
    register_blueprint(app)
    init_login(app)
    create_admin(app, db)
    return app
Exemplo n.º 3
0
def create_app():
    app = Flask(__name__)
    app.config.from_object('config')
    init_db(app)
    init_login(app)
    init_blueprint(app)
    create_admin(app, db)

    return app