Blueprints in Flask "Attribute 'function' object has no attribute 'name'

NoSuchKey