I had basically the same issue as you.

With only one Django app deployed, it's easy to just stick your
WSGIPythonPath directive in /etc/apache2/apache.conf.

But with multiple different virtualenvs, you need to do something like this:

http://stackoverflow.com/questions/4614121/running-python-from-a-virtualenv-with-apache-mod-wsgi-on-windows

Hope that helps. I've implemented this solution myself.

--
Joey Espinosa
Python Developer
http://about.me/joelinux
On Apr 11, 2013 5:20 PM, "Roberto López López" <[email protected]> wrote:

>
> Hi Joey,
>
> All of them are in different virtualenvs.
>
>
>
> On 04/11/2013 11:02 PM, Joey Espinosa wrote:
>
> I meant Python libs/binary.
>
> --
> Joey "JoeLinux" Espinosa
> Python Developer
> http://about.me/joelinux
> On Apr 11, 2013 5:00 PM, "Joey Espinosa" <[email protected]>
> wrote:
>
>> Do all your sites share the same Python, or are they in different
>> virtualenvs?
>>
>> --
>> Joey "JoeLinux" Espinosa
>> Python Developer
>> http://about.me/joelinux
>> On Apr 11, 2013 3:39 PM, "Roberto López López" <[email protected]>
>> wrote:
>>
>>>
>>> Hi everyone,
>>>
>>> We are trying to deploy a django application on our apache server
>>> (mod_wsgi) following
>>> https://docs.djangoproject.com/en/1.4/howto/deployment/wsgi/modwsgi/ We
>>> have different virtualhosts defined as well in httpd.conf.
>>>
>>> We are now stuck, apache is throwing the following error:
>>>
>>>     WSGIPythonPath cannot occur within <VirtualHost> section
>>>
>>> Can anyone give us any hint? Thank you very much!
>>>
>>> Roberto
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at http://groups.google.com/group/django-users?hl=en.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>   --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to