相关文章推荐
含蓄的闹钟  ·  html - ...·  2 年前    · 
阳光的青蛙  ·  Spring data ...·  2 年前    · 
帅呆的四季豆  ·  python ...·  2 年前    · 

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?