添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Use with flask Blueprint #29

@davidferguson

Description

Can this module be used with flask Blueprint s, and if so what would be an example usage?

You can't do executor = Executor(my_app_blueprint) as that causes the following error:

AttributeError: 'Blueprint' object has no attribute 'config'

And you can't access flask.current_app in the global scope. At the moment I'm creating the executor inside of a flask route function if it's not been created already, but this isn't an ideal solution.

Any advice?