title: lighttpd django fastcgi and auto-reloading?
body: <p>I'm wondering if anyone has ever gotten fcgi to auto-reload with this setup? this to work? I have tried implementing a reload mechanism using django's autoreload.py (copying it to my own location and calling autoreload.main(start), unfortunately, I get errors when the fork occurs like:</p>
  
  <pre><code>django/core/servers/fastcgi.py", line 180, 
    in runfastcgi WSGIServer(WSGIHandler(), **wsgi_opts).run() 
       File "build/bdist.freebsd-6.4-RELEASE-p9-amd64/egg/flup/server/fcgi_fork.py", line 140, 
    in run 
       File "build/bdist.freebsd-6.4-RELEASE-p9-amd64/egg/flup/server/preforkserver.py", line 119, 
    in run 
       File "build/bdist.freebsd-6.4-RELEASE-p9-amd64/egg/flup/server/preforkserver.py", line 450, 
    in _installSignalHandlers ValueError: signal only works in main thread
  </code></pre>
  
  <p>My ideal setup would be to be able to reload/kill my fcgi process and start a new one after each time a code change is detected, similar to how django does this with their internal server. I also tried removing the threading from autoreload.py that would get past this error, but it does not seem to run the server properly (still investigating that).</p>
  
  <p>Perhaps someone has tried CherryPies autoreload.py in the settings.py file for django?</p>