Django

Code

Changeset 275

Show
Ignore:
Timestamp:
07/21/05 10:40:33 (3 years ago)
Author:
adrian
Message:

Fixed #135 -- Added 'Multiple Django installations on the same Apache' to docs/mod_python.txt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/modpython.txt

    r260 r275  
    6464The only thing different here is the ``DJANGO_SETTINGS_MODULE``. 
    6565 
     66Multiple Django installations on the same Apache 
     67================================================ 
     68 
     69It's entirely possible to run multiple Django installations on the same Apache 
     70instance. Just use ``VirtualHost`` for that, like so:: 
     71 
     72    NameVirtualHost * 
     73 
     74    <VirtualHost *> 
     75        ServerName www.example.com 
     76        # ... 
     77        SetEnv DJANGO_SETTINGS_MODULE myproject.settings.main 
     78    </VirtualHost> 
     79 
     80    <VirtualHost *> 
     81        ServerName admin.example.com 
     82        # ... 
     83        SetEnv DJANGO_SETTINGS_MODULE myproject.settings.admin 
     84    </VirtualHost> 
     85 
     86Don't put two Django installations within the same ``VirtualHost``. Due to the 
     87way mod_python caches code in memory, your two Django installations will 
     88conflict. If you can think of a way to solve this problem, please file a ticket 
     89in our ticket system. 
     90 
    6691Running a development server with mod_python 
    6792============================================