def create_app(env_name='default'): app = Flask(__name__) init_app(app, env_name) init_ext(app) init_api(app) return app
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
def create_app(env_name = 'default'): app = Flask(__name__) #配置 init_app(app,env_name) #插件等 init_ext(app) #蓝图 init_blue(app) return app
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
def create_app(env_name='default'): app = Flask(__name__) #配置 init_app(app, env_name) #插件 # init_ext() app.register_blueprint(blueprint=blue) return app
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