librelist archives

« back to archive

Avoiding before_request and teardown_request for static content?

Avoiding before_request and teardown_request for static content?

From:
Stephen Wood
Date:
2013-09-24 @ 22:10
Hello. I'm new to flask and have been very impressed with the entire
project.

How do I avoid before_request and teardown_request functions from being
executed when serving up static content? For example, I wouldn't want my
application to connect to mysql before serving up some css.

-- 
Stephen Wood
www.heystephenwood.com