From 1a3450ce76a8b61374a13932d1f8942904aacc4b Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sat, 29 Apr 2006 01:55:59 +0000 Subject: [PATCH] magic-removal: Proofread docs/modpython.txt git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2783 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/modpython.txt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/modpython.txt b/docs/modpython.txt index 447bd70573..2b57d0514c 100644 --- a/docs/modpython.txt +++ b/docs/modpython.txt @@ -31,11 +31,11 @@ Then edit your ``httpd.conf`` file and add the following:: SetHandler python-program PythonHandler django.core.handlers.modpython - SetEnv DJANGO_SETTINGS_MODULE myproject.settings + SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonDebug On -...and replace ``myproject.settings`` with the Python path to your settings file. +...and replace ``mysite.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`` @@ -71,13 +71,13 @@ instance. Just use ``VirtualHost`` for that, like so:: ServerName www.example.com # ... - SetEnv DJANGO_SETTINGS_MODULE myproject.settings + SetEnv DJANGO_SETTINGS_MODULE mysite.settings ServerName www2.example.com # ... - SetEnv DJANGO_SETTINGS_MODULE myproject.other_settings + SetEnv DJANGO_SETTINGS_MODULE mysite.other_settings If you need to put two Django installations within the same ``VirtualHost``, @@ -89,13 +89,13 @@ mess things up. Use the ``PythonInterpreter`` directive to give different ServerName www.example.com # ... - SetEnv DJANGO_SETTINGS_MODULE myproject.settings - PythonInterpreter myproject + SetEnv DJANGO_SETTINGS_MODULE mysite.settings + PythonInterpreter mysite - SetEnv DJANGO_SETTINGS_MODULE myproject.other_settings - PythonInterpreter myproject_other + SetEnv DJANGO_SETTINGS_MODULE mysite.other_settings + PythonInterpreter mysite_other @@ -153,7 +153,7 @@ the ``media`` subdirectory and any URL that ends with ``.jpg``, ``.gif`` or SetHandler python-program PythonHandler django.core.handlers.modpython - SetEnv DJANGO_SETTINGS_MODULE myproject.settings + SetEnv DJANGO_SETTINGS_MODULE mysite.settings