Created
August 30, 2011 04:57
-
-
Save tomekwojcik/1180217 to your computer and use it in GitHub Desktop.
Dirty fix for Flask's bug with static files.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# default is the blueprint object | |
@default.route('/files/<path:path>') | |
def files(path): | |
return default.send_static_file(path) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment