It says in the documentation that the static/ directory is hosted statically. http://webpy.org/docs/0.3/api, as for you question I don't have any idea how the web.py handler looks like for that path...
On Mon, Sep 14, 2009 at 7:08 AM, Bret Taylor <[email protected]> wrote: > > What does the web.py handler look like for that path ('/static/')? > Does the web.py static file handler support listing directories? > (Sorry if I am misunderstanding your problem.) > > Bret > > On Sep 13, 2:55 pm, mathew wong <[email protected]> wrote: > > Whoa awesome work! I did find a slight problem though. Currently when I > run > > tornado I can't seem to access my JS and css files, the warning I get is > > WARNING:root:404 GET /static/ (127.0.0.1) 43.12ms. > > > > Thanks, > > Mathew > > > > On Mon, Sep 14, 2009 at 2:32 AM, Bret Taylor <[email protected]> wrote: > > > > > I just checked in change to Tornado that enables you to run any WSGI- > > > compatible framework on Tornado's HTTP server. You can find it in a > > > class called WSGIContainer in wsgi.py: > > > > >http://github.com/facebook/tornado/blob/master/tornado/wsgi.py#L188 > > > > > You will have to check out Tornado from github to get the change; it > > > is not yet included in the tarball distribution. > > > > > I have tested with web.py, but I have not tested extensively, and > > > certainly not with extremely involved applications. If any web.py > > > users/devs are interested, would love for you to try it out with a > > > more involved web.py app and let me know what issues you find so I can > > > fix them. Here is the web.py Hello, world on Twisted as a starting > > > point: > > > > > import tornado.httpserver > > > import tornado.ioloop > > > import tornado.wsgi > > > import web > > > > > urls = ( > > > '/(.*)', 'hello' > > > ) > > > app = web.application(urls, globals()) > > > > > class hello: > > > def GET(self, name): > > > if not name: > > > name = 'world' > > > return 'Hello, ' + name + '!' > > > > > def main(): > > > container = tornado.wsgi.WSGIContainer(app.wsgifunc()) > > > http_server = tornado.httpserver.HTTPServer(container) > > > http_server.listen(8888) > > > tornado.ioloop.IOLoop.instance().start() > > > > > if __name__ == "__main__": > > > main() > > > > > On Sep 10, 12:48 pm, Aaron Swartz <[email protected]> wrote: > > > > Bret Taylor's written his second web.py clone (his first was Google > > > > App Engine's webapp). Does someone want to see if they can port > web.py > > > > to talk to his nonblocking webserver: > > > > > >http://www.tornadoweb.org/ > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
