summaryrefslogtreecommitdiff
path: root/docs/topics/settings.txt
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-08-28 02:40:57 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-08-28 02:40:57 +0000
commitf611ffaab3be0c9a9d21b6bd404fdefb30a3e909 (patch)
tree3d0b35b0a8c8360dd92d2b921b5d877773e4e227 /docs/topics/settings.txt
parent23e85ef25fd56de439337df28227a87080046156 (diff)
Fixed #13820 -- Started the deprecation process for mod_python. Thanks to Robert Coup for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13648 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/topics/settings.txt')
-rw-r--r--docs/topics/settings.txt19
1 files changed, 9 insertions, 10 deletions
diff --git a/docs/topics/settings.txt b/docs/topics/settings.txt
index 59c02c3021..6d96190a90 100644
--- a/docs/topics/settings.txt
+++ b/docs/topics/settings.txt
@@ -64,20 +64,19 @@ Use the ``--settings`` command-line argument to specify the settings manually::
.. _django-admin.py: ../django-admin/
-On the server (mod_python)
+On the server (mod_wsgi)
--------------------------
-In your live server environment, you'll need to tell Apache/mod_python which
-settings file to use. Do that with ``SetEnv``::
+In your live server environment, you'll need to tell your WSGI
+application what settings file to use. Do that with ``os.environ``::
- <Location "/mysite/">
- SetHandler python-program
- PythonHandler django.core.handlers.modpython
- SetEnv DJANGO_SETTINGS_MODULE mysite.settings
- </Location>
+ import os
-Read the :doc:`Django mod_python documentation </howto/deployment/modpython>` for
-more information.
+ os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
+
+Read the :doc:`Django mod_wsgi documentation
+</howto/deployment/modwsgi>` for more information and other common
+elements to a Django WSGI application.
Default settings
================