Last active
December 23, 2015 18:59
-
-
Save eldondev/6679931 to your computer and use it in GitHub Desktop.
Tornado static file index.html
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
application = tornado.web.Application([ | |
(r"/()$", tornado.web.StaticFileHandler, {'path':'static/index.html'}), | |
(r"/(.*)", tornado.web.StaticFileHandler, {'path':'static/'}), | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks, nice code!
Helped me to figure out a solution myself 😃