anyone? Please, I'm trying very hard to get this working!
On Sat, Nov 21, 2009 at 3:19 PM, Someone Something firstname.lastname@example.org:
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=Resource() root.putChild("programming", File("/home/dhaivat/"));
factory= Site(root) reactor.listenTCP(8080, factory); reactor.run();
How can I implement the home page?