Another direction might be to run a separate WSGI HTTP server (like
gunicorn) and proxy to it from Apache. Saves the hassle of messing
around with mod_wsgi.

_Nik

On 4/11/2013 3:20 PM, Joey Espinosa wrote:
>
> 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" <roberto.lo...@uni.no
> <mailto:roberto.lo...@uni.no>> 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"
>>     <jlouis.espin...@gmail.com <mailto:jlouis.espin...@gmail.com>> 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"
>>         <roberto.lo...@uni.no <mailto:roberto.lo...@uni.no>> 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
>>             django-users+unsubscr...@googlegroups.com
>>             <mailto:django-users%2bunsubscr...@googlegroups.com>.
>>             To post to this group, send email to
>>             django-users@googlegroups.com
>>             <mailto:django-users@googlegroups.com>.
>>             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 django-users+unsubscr...@googlegroups.com
>>     <mailto:django-users+unsubscr...@googlegroups.com>.
>>     To post to this group, send email to
>>     django-users@googlegroups.com <mailto:django-users@googlegroups.com>.
>>     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 django-users+unsubscr...@googlegroups.com
>     <mailto:django-users%2bunsubscr...@googlegroups.com>.
>     To post to this group, send email to django-users@googlegroups.com
>     <mailto:django-users@googlegroups.com>.
>     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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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