flask项目配置可以由Flask对象的app属性进行配置:
app.config["ADMIN_NAME"] = "JIM"
app.config.update("ADMIN_NAME"=JIM,"IS_OK"=True)
value = app.config["IS_OK"]
flask项目配置可以由Flask对象的app属性进行配置:
app.config["ADMIN_NAME"] = "JIM"
app.config.update("ADMIN_NAME"=JIM,"IS_OK"=True)
value = app.config["IS_OK"]