When you are trying the Flask flaskr tutorial, you may encounter this error:-
AttributeError: 'Flask' object has no attribute 'teardown_request'
I was initially stumped, but then realised the catch. I’m reading the tutorial for Flask v0.7.
I installed Flask v0.61 from pypi, which is the current stable version.
Solution;-
easy_install Flask==dev
This was already put in the github project page.