Fixed #11063: updated install docs to mention mod_wsgi instead of mod_python.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10745 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2009-05-12 17:23:33 +00:00
parent 7b81dd4779
commit e7fdfa14a4
1 changed files with 19 additions and 17 deletions

View File

@ -26,31 +26,33 @@ probably already have it installed.
.. _jython: http://jython.org/ .. _jython: http://jython.org/
Install Apache and mod_python Install Apache and mod_wsgi
============================= =============================
If you just want to experiment with Django, skip ahead to the next If you just want to experiment with Django, skip ahead to the next section;
section; Django includes a lightweight web server you can use for Django includes a lightweight web server you can use for testing, so you won't
testing, so you won't need to set up Apache until you're ready to need to set up Apache until you're ready to deploy Django in production.
deploy Django in production.
If you want to use Django on a production site, use Apache with `mod_python`_. If you want to use Django on a production site, use Apache with `mod_wsgi`_.
mod_python is similar to mod_perl -- it embeds Python within Apache and loads mod_wsgi is similar to mod_perl -- it embeds Python within Apache and loads
Python code into memory when the server starts. Code stays in memory throughout Python code into memory when the server starts. Code stays in memory throughout
the life of an Apache process, which leads to significant performance gains the life of an Apache process, which leads to significant performance gains over
over other server arrangements. Make sure you have Apache installed, with the other server arrangements. Make sure you have Apache installed, with the
mod_python module activated. Django requires Apache 2.x and mod_python 3.x. mod_wsgi module activated. Django will work with any version of Apache that
supports mod_wsgi.
See :ref:`How to use Django with mod_python <howto-deployment-modpython>` for See :ref:`How to use Django with mod_wsgi <howto-deployment-modwsgi>` for
information on how to configure mod_python once you have it installed. information on how to configure mod_wsgi once you have it installed.
If you can't use mod_python for some reason, fear not: Django follows the WSGI_ If you can't use mod_wsgi for some reason, fear not: Django supports many other
spec, which allows it to run on a variety of server platforms. See the deployment options. A great second choice is :ref:`mod_python
`server-arrangements wiki page`_ for specific installation instructions for <howto-deployment-modpython>`, the predecessor to mod_wsgi. Additionally, Django
each platform. follows the WSGI_ spec, which allows it to run on a variety of server platforms.
See the `server-arrangements wiki page`_ for specific installation instructions
for each platform.
.. _Apache: http://httpd.apache.org/ .. _Apache: http://httpd.apache.org/
.. _mod_python: http://www.modpython.org/ .. _mod_wsgi: http://code.google.com/p/modwsgi/
.. _WSGI: http://www.python.org/peps/pep-0333.html .. _WSGI: http://www.python.org/peps/pep-0333.html
.. _server-arrangements wiki page: http://code.djangoproject.com/wiki/ServerArrangements .. _server-arrangements wiki page: http://code.djangoproject.com/wiki/ServerArrangements