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
{ | |
"RedisServers": | |
[ | |
{ | |
"server": "127.0.0.1", | |
"port" : 6379 | |
}, | |
{ | |
"server": "127.0.0.2", | |
"port" : 6379 |
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"}), | |
]) |