thank you graham!

Miguel
Sent from Madrid, Spain

On Mon, Aug 3, 2009 at 1:07 PM, Graham Dumpleton <graham.dumple...@gmail.com
> wrote:

>
>
>
> On Aug 3, 8:56 pm, Miguel <migue...@gmail.com> wrote:
> > Hi all,
> >
> > I would like to configure two django sites using the same apache. One
> > running on 80 port and other running on 8080 port.
> > The problem I have found is that the configuration I have done for the
> > second one it is using teh configuration of the first one (settings.py)
> >
> > I have set the configuration in apache file config, the important ones:
> >
> >   PythonHandler django.core.handlers.modpython
> >   PythonPath  "  ....+ sys.path "
> >   SetEnv DJANGO_SETTINGS_MODULE contenedor.settings
> >
> > I think that the problem is maybe in the sys.path because the system is
> > configured with the pythonpath of the first configuration.
> >
> > does anybody have any ideas?
>
> You need to set PythonInterpreter directive to be different value for
> each. This is because default separation in mod_python is by virtual
> host server name.
>
> You possibly would be better off using mod_wsgi, in which the default
> separation is each WSGI application and so it works without you need
> to override it. Better still, use mod_wsgi in daemon mode and delegate
> each to a separate process.
>
> Graham
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to