In the following code I am attempting to host several django applications in vhosts - <a href="http://pastie.org/1122806">http://pastie.org/1122806</a> . This code works fine if I only need one settings module. In my case each vhost needs it&#39;s own(lines 32-38) DJANGO_SETTINGS_MODULE environment variable. It appears that I need to use reactor.spawnProcess to spawn a new process with the required environment variable. <div>
<br></div><div>Can anyone give me a few suggestions as to how to accomplish this task? </div><div><br></div><div>I think that it involves writing a custom protocol that would communicate with the wsgi process but there may be better options available. Any suggestions would be greatly appreciated. </div>
<div><br></div>