Skip to content

Instantly share code, notes, and snippets.

@tomekwojcik
Created August 30, 2011 04:57
Show Gist options
  • Save tomekwojcik/1180217 to your computer and use it in GitHub Desktop.
Save tomekwojcik/1180217 to your computer and use it in GitHub Desktop.
Dirty fix for Flask's bug with static files.
# 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