john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

static site

from twisted.internet import reactor
from twisted.web.server import Site
from twisted.web.static import File

resource = File('/var/www/python-john/TWISTED')
factory = Site( resource )
reactor.listenTCP(8080, factory)
reactor.run()

  • « jinja2 template jquery tablesorter appengine example
  • HttpClient 4 2 REST get post put delete example »

Published

May 20, 2013

Category

python-twisted

~20 words

Tags

  • python 180
  • site 3
  • static 4
  • twisted 20