Re: run multiple django app's on server

2008-01-30 Thread Graham Dumpleton

Setting PythonInterpreter should not have been required as when
VirtualHost's are configured properly mod_python will give each
VirtualHost a different interpreter anyway.

The cause of this probably has generally been that the Apache
configuration was missing an appropriate NameVirtualHost directive.

Thus, have you defined the appropriate NameVirtualHost directives and
if so, to what?

Please follow up as would like to squash this PythonInterpreter
suggestion as some sort of magic solution for what is actually a
different problem which may cause you other issues over time. :-)

Graham

On Jan 31, 1:38 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Thanks for all the advices,
>
> i indeed forgot to define the PythonInterpreter.
> It seems all the problems are fixed by adding this in the httpd.conf.
>
> thanks again,
>
> Richard
>
> On Jan 30, 3:32 pm, Jonathan Ballet <[EMAIL PROTECTED]> wrote:
>
> > [EMAIL PROTECTED] wrote:
> > > That's the weird thing,
>
> > > If we restart httpd.conf the python code will be compiled in some
> > > cases it will show one of the projects for both ports and in a other
> > > case it will show the other for both ports without altering anything
> > > to the code. Both are working fine independently. So to me it seems
> > > that while restarting apache it in some cases goes to the wrong
> > > settings file.
>
> > Could you tell us your Apache & mod_python versions ?
>
> > There's a warning in the Django documentation about installing severals web 
> > sites in the same Vhost
> > [1]. Unfortunately, this is not your case :/
> > Maybe you can try the PythonInterpreter tip to see if it changes something ?
>
> >   - Jonathan
>
> > [1] 
> > :http://www.djangoproject.com/documentation/modpython/#multiple-django...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: run multiple django app's on server

2008-01-30 Thread web-junkie

That did it for me too, thanks!

On Jan 30, 3:29 pm, prz <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > That's the weird thing,
>
> > If we restart httpd.conf the python code will be compiled in some
> > cases it will show one of the projects for both ports and in a other
> > case it will show the other for both ports without altering anything
> > to the code. Both are working fine independently. So to me it seems
> > that while restarting apache it in some cases goes to the wrong
> > settings file.
>
> make sure you use the
>
> PythonInterpreter XX
>
> setting, otherwise one interpreter will try to run multiple things. Well
> documented
> (but I had the problem initially as well)
>
>     =-= tony
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: run multiple django app's on server

2008-01-30 Thread [EMAIL PROTECTED]

Thanks for all the advices,

i indeed forgot to define the PythonInterpreter.
It seems all the problems are fixed by adding this in the httpd.conf.

thanks again,

Richard

On Jan 30, 3:32 pm, Jonathan Ballet <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > That's the weird thing,
>
> > If we restart httpd.conf the python code will be compiled in some
> > cases it will show one of the projects for both ports and in a other
> > case it will show the other for both ports without altering anything
> > to the code. Both are working fine independently. So to me it seems
> > that while restarting apache it in some cases goes to the wrong
> > settings file.
>
> Could you tell us your Apache & mod_python versions ?
>
> There's a warning in the Django documentation about installing severals web 
> sites in the same Vhost
> [1]. Unfortunately, this is not your case :/
> Maybe you can try the PythonInterpreter tip to see if it changes something ?
>
>   - Jonathan
>
> [1] :http://www.djangoproject.com/documentation/modpython/#multiple-django...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: run multiple django app's on server

2008-01-30 Thread Jonathan Ballet

[EMAIL PROTECTED] wrote:
> That's the weird thing,
> 
> If we restart httpd.conf the python code will be compiled in some
> cases it will show one of the projects for both ports and in a other
> case it will show the other for both ports without altering anything
> to the code. Both are working fine independently. So to me it seems
> that while restarting apache it in some cases goes to the wrong
> settings file.

Could you tell us your Apache & mod_python versions ?

There's a warning in the Django documentation about installing severals web 
sites in the same Vhost 
[1]. Unfortunately, this is not your case :/
Maybe you can try the PythonInterpreter tip to see if it changes something ?

  - Jonathan

[1] : 
http://www.djangoproject.com/documentation/modpython/#multiple-django-installations-on-the-same-apache

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



Re: run multiple django app's on server

2008-01-30 Thread prz

[EMAIL PROTECTED] wrote:
> That's the weird thing,
>
> If we restart httpd.conf the python code will be compiled in some
> cases it will show one of the projects for both ports and in a other
> case it will show the other for both ports without altering anything
> to the code. Both are working fine independently. So to me it seems
> that while restarting apache it in some cases goes to the wrong
> settings file.
>
>   

make sure you use the 

PythonInterpreter XX


setting, otherwise one interpreter will try to run multiple things. Well 
documented
(but I had the problem initially as well)

=-= tony



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



Re: run multiple django app's on server

2008-01-30 Thread [EMAIL PROTECTED]

That's the weird thing,

If we restart httpd.conf the python code will be compiled in some
cases it will show one of the projects for both ports and in a other
case it will show the other for both ports without altering anything
to the code. Both are working fine independently. So to me it seems
that while restarting apache it in some cases goes to the wrong
settings file.



On Jan 30, 2:57 pm, Eren Türkay <[EMAIL PROTECTED]> wrote:
> On 30 Jan 2008 Wed 15:18:21 [EMAIL PROTECTED] wrote:
>
> > Did we specified the Httpd.conf in the wrong way ?
> > Is there someone that experienced similar problems and know how to
> > solve this ?
>
> Did you control that you properly set setting.py file for both sites? It seems
> to me that there is something related with settings.py file.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: run multiple django app's on server

2008-01-30 Thread web-junkie

I have kinda the same problem as of today. It just seems to not use
use the settings file I want.
Is there something wrong with having to exact same virtualhosts that
just differ in the specified django settings?

On Jan 30, 2:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hello Django Users,
>
> I'm working on a application that evolves over time. in order to show
> both applications we set up virtual hosts in the httpd.conf in the
> following way.
>
> 
>   ServerName bioinf-dev.erasmusmc.nl
>   DocumentRoot "/home/bioinf/richard/public_html/iqc"
>   ErrorLog logs/iqc_error_log
>   CustomLog logs/iqc_access_log combined
>
>   
>     SetHandler python-program
>     PythonHandler django.core.handlers.modpython
>     SetEnv DJANGO_SETTINGS_MODULE iqc.settings
>     PythonDebug On
>     PythonPath "['/home/bioinf/richard/public_html','/home/bioinf/
> richard/public_html/iqc']+sys.path"
>   
> 
>
> 
>   ServerName bioinf-dev.erasmusmc.nl
>   DocumentRoot "/home/bioinf/richard/public_html/idap"
>   ErrorLog logs/idap_error_log
>   CustomLog logs/idap_access_log combined
>
>   
>     SetHandler python-program
>     PythonHandler django.core.handlers.modpython
>     SetEnv DJANGO_SETTINGS_MODULE idap.settings
>     PythonDebug On
>     PythonPath "['/home/bioinf/richard/public_html','/home/bioinf/
> richard/public_html/idap']+sys.path"
>   
> 
>
> The problem i'm experiencing is that the templates will mix up.
> What happens is that when i go to bioinf-dev.erasmusmc.nl:8000/ it
> some occasions it will show the templates that are rendered in the
> application that is put under 8001. I've tried several things along
> with the system administrator but he thought it must be something in
> the python code that is mixing up.
>
> Did we specified the Httpd.conf in the wrong way ?
> Is there someone that experienced similar problems and know how to
> solve this ?
>
> you help would be greatly appreciated,
>
> Regards,
>
> Richard Mendes
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: run multiple django app's on server

2008-01-30 Thread Eren Türkay

On 30 Jan 2008 Wed 15:18:21 [EMAIL PROTECTED] wrote:
> Did we specified the Httpd.conf in the wrong way ?
> Is there someone that experienced similar problems and know how to
> solve this ?

Did you control that you properly set setting.py file for both sites? It seems 
to me that there is something related with settings.py file.

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



run multiple django app's on server

2008-01-30 Thread [EMAIL PROTECTED]

Hello Django Users,

I'm working on a application that evolves over time. in order to show
both applications we set up virtual hosts in the httpd.conf in the
following way.


  ServerName bioinf-dev.erasmusmc.nl
  DocumentRoot "/home/bioinf/richard/public_html/iqc"
  ErrorLog logs/iqc_error_log
  CustomLog logs/iqc_access_log combined

  
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE iqc.settings
PythonDebug On
PythonPath "['/home/bioinf/richard/public_html','/home/bioinf/
richard/public_html/iqc']+sys.path"
  



  ServerName bioinf-dev.erasmusmc.nl
  DocumentRoot "/home/bioinf/richard/public_html/idap"
  ErrorLog logs/idap_error_log
  CustomLog logs/idap_access_log combined

  
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE idap.settings
PythonDebug On
PythonPath "['/home/bioinf/richard/public_html','/home/bioinf/
richard/public_html/idap']+sys.path"
  


The problem i'm experiencing is that the templates will mix up.
What happens is that when i go to bioinf-dev.erasmusmc.nl:8000/ it
some occasions it will show the templates that are rendered in the
application that is put under 8001. I've tried several things along
with the system administrator but he thought it must be something in
the python code that is mixing up.

Did we specified the Httpd.conf in the wrong way ?
Is there someone that experienced similar problems and know how to
solve this ?

you help would be greatly appreciated,

Regards,

Richard Mendes


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