diff --git a/docs/modpython.txt b/docs/modpython.txt index dc5364a4db..38e6d91165 100644 --- a/docs/modpython.txt +++ b/docs/modpython.txt @@ -83,10 +83,25 @@ instance. Just use ``VirtualHost`` for that, like so:: SetEnv DJANGO_SETTINGS_MODULE myproject.settings.admin -Don't put two Django installations within the same ``VirtualHost``. Due to the -way mod_python caches code in memory, your two Django installations will -conflict. If you can think of a way to solve this problem, please file a ticket -in our ticket system. +If you need to put two Django installations within the same ``VirtualHost``, +you'll see problems due to the way mod_python caches code in memory. To fix +this problem, you'll need to use the ``PythonInterpreter`` directive to give +different ````s seperate interpreters:: + + + ServerName www.example.com + # ... + + SetEnv DJANGO_SETTINGS_MODULE myproject.settings.main + PythonInterpreter myproject_main + + + + SetEnv DJANGO_SETTINGS_MODULE myproject.settings.admin + PythonInterpreter myproject_admin + + + Running a development server with mod_python ============================================