diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-07-21 19:42:51 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-07-21 19:42:51 +0000 |
| commit | f8e5df6d7ebdd5dd48ee56645fc008928b478358 (patch) | |
| tree | 29d98f3a5560590d87f0662bc1df4cbf4b6bbf8b /docs/modpython.txt | |
| parent | 8b58f8b3ae51910b4399209e729ffb9fee394f83 (diff) | |
Fixed spelling error and reworded mod_python PythonInterpreter section of docs
git-svn-id: http://code.djangoproject.com/svn/django/trunk@285 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/modpython.txt')
| -rw-r--r-- | docs/modpython.txt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/modpython.txt b/docs/modpython.txt index 2bb8d07e62..8688677c6b 100644 --- a/docs/modpython.txt +++ b/docs/modpython.txt @@ -83,10 +83,10 @@ instance. Just use ``VirtualHost`` for that, like so:: SetEnv DJANGO_SETTINGS_MODULE myproject.settings.admin </VirtualHost> -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 ``<Location>`` directives seperate interpreters:: +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 @@ -95,13 +95,15 @@ different ``<Location>`` directives seperate interpreters:: 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. Running a development server with mod_python ============================================ |
