예제 #1
0
파일: __init__.py 프로젝트: 845788173/copy
def create_app(env_name='default'):
    app = Flask(__name__)

    init_app(app, env_name)

    init_ext(app)

    init_api(app)

    return app
예제 #2
0
def create_app(env_name='default'):
    from flask import Flask
    app = Flask(__name__)

    init_app(app, env_name)

    init_ext(app)

    init_view(app)

    return app
예제 #3
0
def create_app(env_name = 'default'):

    app = Flask(__name__)

    #配置
    init_app(app,env_name)
    #插件等
    init_ext(app)
    #蓝图
    init_blue(app)

    return app
예제 #4
0
def create_app(env_name='default'):
    app = Flask(__name__)

    # 配置 settings.py
    init_app(app, env_name)

    # 插件 ext.py
    init_ext(app)

    # 蓝图 views.py
    init_blue(app)

    return app
예제 #5
0
def create_app(env_name='default'):

    app = Flask(__name__)

    #配置
    init_app(app, env_name)

    #插件
    # init_ext()

    app.register_blueprint(blueprint=blue)

    return app
예제 #6
0
파일: __init__.py 프로젝트: Johnny0song/Tpp
def create_app(env_name='default'):
    from flask import Flask

    app = Flask(__name__)
    # 配置
    init_app(app,env_name)


    init_ext(app)

    #api接口
    init_apis(app)

    return app