[Twisted-web] How to use twistd on Windows to run a simple webserver

Jean-Paul Calderone exarkun at divmod.com
Tue Nov 22 13:03:45 MST 2005

On Tue, 22 Nov 2005 13:52:17 -0600, keith.gunderson at act.org wrote:
>I've finally found a good reason to delve into twisted at my job.  I've
>been keeping up with your progress over the past few years, but now I can't
>seem to get the simplest of webapps to run.  (I've read all the docs and
>blogs that I can get my eyes on.)
>The basics....No IRC during business hours,  Win2000, python2.4, latest
>TwistedSumo plus TwistedWeb2 reinstalled for good measure.
>I want to run the 'Simple application' described the twisted.web2
>introduction.  (pasted below.)
>Twistd.py has syslog issues for me.  My 'twistdWithSyslogRemoved.py' does
>nothing but release an inaudible chirp.  (As does _twistd.py .)
>What additional hints can you give me?  I have delusions of nevow,
>mantissa, and glory in my future.  But one step at a time.

twisted/scripts/twistd.py is a private implementation module, it is not intended to be invoked directly.  It is only used when you use twistd on POSIX.

twisted/scripts/_twistw.py is also a private implementation module.  It is only used when you use twistd on Windows.

bin/twistd is the executable program intended to be invoked.  I'm not sure how the latest Windows installer works.  It used to provide a command shell (cmd.exe with the environment configured to make working with Twisted easier) from which you could run "twistd" without specifying the full location.  This may still be the case.

In any case, you definitely don't want to run anything in twisted/scripts/ manually.


More information about the Twisted-web mailing list