summaryrefslogtreecommitdiff
path: root/docs/modpython.txt
diff options
context:
space:
mode:
authorGeorg Bauer <gb@hugo.westfalen.de>2005-10-19 15:47:26 +0000
committerGeorg Bauer <gb@hugo.westfalen.de>2005-10-19 15:47:26 +0000
commit1d08d433f9cb49c00329255d14653adabdfaa270 (patch)
tree35a73f36fc73d9e7b2db5d5dc7d1930fafb698ca /docs/modpython.txt
parent6a25843fb15ef6bc9a2cf4e71925088712b5ac24 (diff)
parented2f2419a1a49e1cc3e1279ae922babafcd0395a (diff)
i18n: merged up to [954] from trunk. contains the big load of admin reworking stuff from adrian.
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@956 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/modpython.txt')
-rw-r--r--docs/modpython.txt32
1 files changed, 10 insertions, 22 deletions
diff --git a/docs/modpython.txt b/docs/modpython.txt
index d24ea29018..13377ad2dd 100644
--- a/docs/modpython.txt
+++ b/docs/modpython.txt
@@ -25,12 +25,11 @@ Then edit your ``httpd.conf`` file and add the following::
<Location "/mysite/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
- SetEnv DJANGO_SETTINGS_MODULE myproject.settings.main
+ SetEnv DJANGO_SETTINGS_MODULE myproject.settings
PythonDebug On
</Location>
-...and replace ``myproject.settings.main`` with the Python path to your
-settings file.
+...and replace ``myproject.settings`` with the Python path to your settings file.
This tells Apache: "Use mod_python for any URL at or under '/mysite/', using the
Django mod_python handler." It passes the value of ``DJANGO_SETTINGS_MODULE``
@@ -55,17 +54,6 @@ full URL.
When deploying Django sites on mod_python, you'll need to restart Apache each
time you make changes to your Python code.
-Here's a template for an admin configuration::
-
- <Location "/admin/">
- SetHandler python-program
- PythonHandler django.core.handlers.modpython
- SetEnv DJANGO_SETTINGS_MODULE myproject.settings.admin
- PythonDebug On
- </Location>
-
-The only thing different here is the ``DJANGO_SETTINGS_MODULE``.
-
Multiple Django installations on the same Apache
================================================
@@ -77,13 +65,13 @@ instance. Just use ``VirtualHost`` for that, like so::
<VirtualHost *>
ServerName www.example.com
# ...
- SetEnv DJANGO_SETTINGS_MODULE myproject.settings.main
+ SetEnv DJANGO_SETTINGS_MODULE myproject.settings
</VirtualHost>
<VirtualHost *>
- ServerName admin.example.com
+ ServerName www2.example.com
# ...
- SetEnv DJANGO_SETTINGS_MODULE myproject.settings.admin
+ SetEnv DJANGO_SETTINGS_MODULE myproject.other_settings
</VirtualHost>
If you need to put two Django installations within the same ``VirtualHost``,
@@ -95,13 +83,13 @@ mess things up. Use the ``PythonInterpreter`` directive to give different
ServerName www.example.com
# ...
<Location "/something">
- SetEnv DJANGO_SETTINGS_MODULE myproject.settings.main
- PythonInterpreter myproject_main
+ SetEnv DJANGO_SETTINGS_MODULE myproject.settings
+ PythonInterpreter myproject
</Location>
- <Location "/admin">
- SetEnv DJANGO_SETTINGS_MODULE myproject.settings.admin
- PythonInterpreter myproject_admin
+ <Location "/otherthing">
+ SetEnv DJANGO_SETTINGS_MODULE myproject.other_settings
+ PythonInterpreter myproject_other
</Location>
</VirtualHost>