[Twisted-web] Question about File() and Resource()
fordhaivat at gmail.com
Sat Nov 21 19:23:36 EST 2009
anyone? Please, I'm trying very hard to get this working!
On Sat, Nov 21, 2009 at 3:19 PM, Someone Something <fordhaivat at gmail.com>wrote:
> 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...
More information about the Twisted-web