WSGIPythonPath and

2013-04-11 Thread Roberto López López

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  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.
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.




Re: WSGIPythonPath and

2013-04-11 Thread Joey Espinosa
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"  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  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.
> 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.




Re: WSGIPythonPath and

2013-04-11 Thread Joey Espinosa
I meant Python libs/binary.

--
Joey "JoeLinux" Espinosa
Python Developer
http://about.me/joelinux
On Apr 11, 2013 5:00 PM, "Joey Espinosa"  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" 
> 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  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.
>> 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.




Re: WSGIPythonPath and

2013-04-11 Thread Roberto López López

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"  > 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"
> 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  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
> .
> 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.
>  
>  

-- 
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.




Re: WSGIPythonPath and

2013-04-11 Thread Joey Espinosa
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"  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" 
> 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" 
>> 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  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.
>>> 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.
>
>
>
>
>  --
> 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.




Re: WSGIPythonPath and

2013-04-11 Thread Nikolas Stevenson-Molnar
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"  > 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"
>> 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"
>> 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  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
>> .
>> 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.
>>  
>>  
>
> -- 
> 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.
>  
>  

-- 
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.




Re: WSGIPythonPath and

2013-04-12 Thread Roberto López López

Thank you very much Joey and Nik, I will talk about your proposed
solutions with our sysadmin.

Best,

Roberto



On 04/12/2013 01:11 AM, Nikolas Stevenson-Molnar wrote:
> 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" > > 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"
>>> 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"
>>> 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  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
>>> .
>>> 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.
>>>  
>>>  
>>
>> -- 
>> 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.
>>  
>>  
> 
> -- 
> 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-u