tags:

views:

26

answers:

1

I have a directory structure setup like:

root/
  js/
  css/
  libs/
  index.html

From Tornado, I want to serve js, css, and libs as static directories, but I can only find out how to serve one of them. Can this be done?

A: 

No its not possible.

You could ofcourse create a new folder -- parent, and place js, css and libs inside of that folder, and then speciy that parent folder as the 'static_path'

nb. "In production, you probably want to serve static files from a more optimized static file server like nginx"

Schildmeijer