Rectangle 27 0

python Flask : TypeError: 'str' object is not callable?


self.view_functions[rule.endpoint]

That means that self.view_functions[rule.endpoint] is a string, not a function, thus cannot be called (with (...) operator). That said, it is difficult to tell what the issue without your code: Flask expects a function to be called and it gets a string. Did you use the @app.route decorator?

The routes are built outside of a route decorator from a different config within the blueprint that gets built and registered with the the application factory I built...when making a second application I did the route method notation as strings without thinking.

Note