Re-added support for folder with static files, refactored static file sending

This commit is contained in:
Armin Ronacher 2010-07-05 10:23:35 +02:00
parent b7109865a3
commit ac13deff40
6 changed files with 36 additions and 10 deletions

View file

@ -273,7 +273,7 @@ class Flask(_PackageBoundObject):
# if there is a static folder, register it for the application.
if self.has_static_folder:
self.add_url_rule(self.static_path + '/<filename>',
self.add_url_rule(self.static_path + '/<path:filename>',
endpoint='static',
view_func=self.send_static_file)