On Fri, Apr 13, 2012 at 2:11 AM, Krzysztof Jurkiewicz
<[email protected]> wrote:
> Hello
> I have django + mod_wsgi + apache2 and virtualhost and it works great.
> I found WSGIPythonHome option but I cant put it in virtualhost but in
> global (quite pointless, because I want different djangos. So how do I
> pull this off to point at multiple pythons (I have on on virtualenv).

WSGIPythonHome is to create baseline environment for mod_wsgi. Most of
the time you'll create an empty virtualenv for that so you can start
with clean sys.path (without any modules that you have in system
python's site-packages). Then in each virtualhost, you can pass
python-path parameter to WSGIDaemonProcess directive to point to the
virtualenv for that vhost. You install different django into that
vhost's virtualenv.

http://code.google.com/p/modwsgi/wiki/VirtualEnvironments#Baseline_Environment

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to