def configure(self, binder):
binder.bind_scope(self.request_scope_class)
binder.bind(flask.Flask, to=self.app, scope=singleton)
binder.bind(Config, to=self.app.config, scope=singleton)
binder.bind(Request, to=lambda: flask.request)
评论列表
文章目录