Example #1
0
def create_app(env_name):
    app = Flask(__name__)
    app.config.from_object(settings.ENV_NAME.get(env_name))

    init_urls(app)
    init_app(app)
    return app
Example #2
0
def create_app():
    app = Flask(__name__)
    app.register_blueprint(blueprint=blue)
    app.config.from_object(env.get('develop'))
    init_app(app)
    init_sql(app)
    return app
Example #3
0
def creater_app(con):
    app = Flask(__name__)
    app.config.from_object(env.get(con))
    init_api(app)
    init_app(app)
    init_sql(app)
    return app
Example #4
0
def create_app():
    app = Flask(__name__)

    app.config.from_object(Config.get('default', 'devalop'))

    init_app(app)

    register_blueprint(app)

    return app
Example #5
0
def create_app(env_name):
    app = Flask(__name__)
    app.config.from_object(settings.env.get(env_name))
    init_app(app=app)
    init_blue(app=app)
    return app
Example #6
0
def creatApp():
    app = Flask(__name__)
    app.config.from_object(setting.env.get(env_info))
    init_app(app)
    init_api(app)
    return app
Example #7
0
def create_app(env_name):
    app = Flask(__name__, template_folder=templates, static_folder=static)
    app.config.from_object(settings.ENV_NAME.get(env_name))

    init_app(app)
    return app