Thanks a lot Graham! I didn't see that part of the documentation. The PythonInterpreter directive worked good to solve the problem. And I don't need to use another SESSION_COOKIE_NAME because I share the users sessions between the apps.
Thanks Luis On May 27, 6:56 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On May 28, 8:28 am, konatufe <[EMAIL PROTECTED]> wrote: > > > 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? > > As per documentation at: > > http://www.djangoproject.com/documentation/modpython/ > > """If you need to put two Django installations within the same > VirtualHost, you’ll need to take a special precaution to ensure > mod_python’s cache doesn’t mess things up. Use the PythonInterpreter > directive to give different <Location> directives separate > interpreters""" > > The reference to "mod_python's cache" is not strictly explaining > things properly, but close enough. So, read the documentation and see > example in there. > > The other thing you may need to do which the documentation doesn't > state, is that if the sessions have to be separate for each instance, > that you set SESSION_COOKIE_NAME different;y in each settings.py file. > > Graham > > > 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 -~----------~----~----~----~------~----~------~--~---