The problem is related to the apache directive SetEnv

I detected that this directive isn't working good, they not set
correctly the var DJANGO_SETTINGS_MODULE

Any idea?


On May 19, 6:46 pm, konatufe <[EMAIL PROTECTED]> wrote:
> Hello Guys:
>
> I'm using one project withtwoapplications that are different, but
> they use the same users.
> One of these apps is the base and the other could or not be installed.
> They use different 404 and 505 error pages.
> To set that I configuredtwodifferents settings.py, the fist app read
> the base settings and the second app import them, but configure
> another apps.
>
> Apacheselect what app run and with what settings file from theApache
> <Location> directive.
>
> Sample:
> <Location "/app1">
>     SetHandler python-program
>     PythonHandler django.core.handlers.modpython
>     PythonPath "['/opt/web/proyect1'] + sys.path"
>    SetEnvDJANGO_SETTINGS_MODULE proyect1.settings
>     PythonDebug On
> </Location>
>
> <Location "/app2">
>     SetHandler python-program
>     PythonHandler django.core.handlers.modpython
>     PythonPath "['/opt/web/proyect1'] + sys.path"
>    SetEnvDJANGO_SETTINGS_MODULE webapps.settings_app2
>     PythonDebug On
> </Location>
>
> The problem is when I log-in in one application, then (logged) I
> change to the other app. The second app keep the settings of the
> previous app!, even the url direction was changed in the browser to
> the new app.
>
> Can anybody help me?
>
> Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to