Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #135 -- Added 'Multiple Django installations on the same Apache…

…' to docs/mod_python.txt

git-svn-id: http://code.djangoproject.com/svn/django/trunk@275 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 52d761cc7a2296e75f4e97e1c0e501f2623fe08c 1 parent 8aa1645
Adrian Holovaty authored July 21, 2005

Showing 1 changed file with 25 additions and 0 deletions. Show diff stats Hide diff stats

  1. 25  docs/modpython.txt
25  docs/modpython.txt
@@ -63,6 +63,31 @@ Here's a template for an admin configuration::
63 63
 
64 64
 The only thing different here is the ``DJANGO_SETTINGS_MODULE``.
65 65
 
  66
+Multiple Django installations on the same Apache
  67
+================================================
  68
+
  69
+It's entirely possible to run multiple Django installations on the same Apache
  70
+instance. 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
+
  86
+Don't put two Django installations within the same ``VirtualHost``. Due to the
  87
+way mod_python caches code in memory, your two Django installations will
  88
+conflict. If you can think of a way to solve this problem, please file a ticket
  89
+in our ticket system.
  90
+
66 91
 Running a development server with mod_python
67 92
 ============================================
68 93
 

0 notes on commit 52d761c

Please sign in to comment.
Something went wrong with that request. Please try again.