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
class StaticFileHandler(RequestHandler): | |
"""A simple handler that can serve static content from a directory. | |
To map a path to this handler for a static data directory /var/www, | |
you would add a line to your application like: | |
application = web.Application([ | |
(r"/static/(.*)", web.StaticFileHandler, {"path": "/var/www"}), | |
]) |