[Twisted-Python] running several services from a single app

Aljoša Mohorović aljosa.mohorovic at gmail.com
Thu Mar 31 04:45:49 EDT 2011

now i looking at adding an wsgi app to this setup.
i'm reading http://twistedmatrix.com/documents/current/web/howto/web-in-60/wsgi.html
but can't figure out howto get factory for wsgi if i have:

def application(environ, start_response):
    start_response('200 OK', [('Content-type', 'text/plain')])
    return ['Hello, world!']
resource = WSGIResource(reactor, reactor.getThreadPool(), application)

i'm looking for something like "reactor.listenTCP(10000,
wsgi_factory)" but don't know howto do it.
please point me to proper docs.


More information about the Twisted-Python mailing list