예제 #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
예제 #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
예제 #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