Re: [Twisted-Python] spawn wsgi resource into separate process

2010-08-29 Thread Thomas Johnson
> > > I have run into a similar problem before. But did you know that any > dict to be treated as the environment can be passed as the first > argument to WSGIHandler()? That's exactly what helped me. I have tried several different methods and game up with mixed results. I have tried overriding t

[Twisted-Python] spawn wsgi resource into separate process

2010-08-28 Thread Thomas Johnson
In the following code I am attempting to host several django applications in vhosts - http://pastie.org/1122806 . This code works fine if I only need one settings module. In my case each vhost needs it's own(lines 32-38) DJANGO_SETTINGS_MODULE environment variable. It appears that I need to use rea