OUTCASTGEEK

tips, tricks, tuts, and more

tornado static content


Sample:

application = tornado.web.Application([
    (r"/", MainHandler),
    (r"/images/(.*)", tornado.web.StaticFileHandler, {"path": os.path.join(os.path.dirname(__file__), "static/images")}),
], **settings)

The images folder inside the static content folder is now url accessible. Any questions, feedback, or comments?


❯❯ Back to Blog ❮❮ ❮ Previous: getting started with unit testing using groovy Next: combine minify javascript dotnet ❯
blog comments powered by Disqus