Re: Vexim Digest, Vol 68, Issue 4
Avleen Vig <[email protected]> Fri, 31 Dec 2010 01:56:08 -0800
| Newsgroups | gmane.mail.exim.vexim.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Dec 31, 2010 at 04:32:34PM +1030, Tim Aslat wrote: > Bundling django would be nice, if there was a simple way to > configure it on servers that doesn't have it installed globally like > the ones I have. I'll find a way to bundle it. I think it's actually quite simple. > I actually spent a couple of hours trying to integrate django using > mod_python on my servers without any luck, it just doesn't want to > play nicely with PHP/FastCGI. Yup! I assume you're using Apache, Lighttpd or Nginx. You can either start the Django app under a FastCGI manager (I'll get instructions on how to do this). Alternatively (and this is the way I like to usually do it), you can run an HTTP manager and use mod_proxy in Apache (or equivalents in other web servers) to talk HTTP to Python. "Spawning" is a good one for this, written by Linden Lab. Tornado is a really good one too (http://www.tornadoweb.org/) and I'll probably bundle this too, to make it simpler for admins :)