>From 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:

<VirtualHost *>
    ServerName www.example.com
    # ...
    <Location "/something">
        SetEnv DJANGO_SETTINGS_MODULE myproject.settings.main
        PythonInterpreter myproject_main
    </Location>

    <Location "/admin">
        SetEnv DJANGO_SETTINGS_MODULE myproject.settings.admin
        PythonInterpreter myproject_admin
    </Location>
</VirtualHost>


The values of PythonInterpreter don't really matter, as long as they're
different between the two Location blocks.




On vie, 2005-09-16 at 14:34 +0530, Kenneth Gonsalves wrote:
> hi,
> i am running both the admin and the site itself using apache and 
> mod_python. I do the admin in firefox and view the site in konqueror. I 
> find that every now and then, either the admin url tries to look up the 
> site url and vice versa. I have to restart apache to get the correct 
> url. How do i overcome this problem?
-- 
Marcos Sánchez Provencio <[EMAIL PROTECTED]>

Reply via email to