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
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
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
def create_app(): app = Flask(__name__) app.config.from_object(Config.get('default', 'devalop')) init_app(app) register_blueprint(app) return app
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
def creatApp(): app = Flask(__name__) app.config.from_object(setting.env.get(env_info)) init_app(app) init_api(app) return app
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