Added note about using different settings modules in the same virtual host
(thanks steadicat). git-svn-id: http://code.djangoproject.com/svn/django/trunk@277 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
78cff1837a
commit
7af62f48e3
|
@ -83,10 +83,25 @@ instance. Just use ``VirtualHost`` for that, like so::
|
||||||
SetEnv DJANGO_SETTINGS_MODULE myproject.settings.admin
|
SetEnv DJANGO_SETTINGS_MODULE myproject.settings.admin
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
Don't put two Django installations within the same ``VirtualHost``. Due to the
|
If you need to put two Django installations within the same ``VirtualHost``,
|
||||||
way mod_python caches code in memory, your two Django installations will
|
you'll see problems due to the way mod_python caches code in memory. To fix
|
||||||
conflict. If you can think of a way to solve this problem, please file a ticket
|
this problem, you'll need to use the ``PythonInterpreter`` directive to give
|
||||||
in our ticket system.
|
different ``<Location>``s seperate 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>
|
||||||
|
|
||||||
|
|
||||||
Running a development server with mod_python
|
Running a development server with mod_python
|
||||||
============================================
|
============================================
|
||||||
|
|
Loading…
Reference in New Issue