[Twisted-web] Question about File() and Resource()

Someone Something fordhaivat at gmail.com
Sat Nov 21 16:19:34 EST 2009

I'm trying to make a homepage that has a link to a page that was made with
file. The only thing that currently works is the File() page. I have
absolutely no idea how to do the rest (no, its not homework). Here's my
current code:
from twisted.web.server import Site
from twisted.web.resource import Resource
from twisted.internet import reactor
from twisted.web.static import File

root.putChild("programming", File("/home/dhaivat/"));

factory= Site(root)
reactor.listenTCP(8080, factory);

How can I implement the home page?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20091121/7259b39d/attachment.htm 

More information about the Twisted-web mailing list