summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorCarl Meyer <carl@oddbird.net>2011-10-22 04:30:10 +0000
committerCarl Meyer <carl@oddbird.net>2011-10-22 04:30:10 +0000
commit145a77edc999fd5f1a53bc5bfd6b581386950074 (patch)
tree473d45e11854e8c1e97a1a4bb4d6eb55d5edfddd /docs/ref
parentdca81ad58a21ca9621a131c787544176618c27e8 (diff)
Fixed #16360 -- Added WSGI entrypoint to startproject layout, and enabled internal servers (runserver and runfcgi) to use an externally-defined WSGI application. Thanks to Armin Ronacher, Jannis Leidel, Alex Gaynor, ptone, and Jacob Kaplan-Moss.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17022 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/gis/deployment.txt6
-rw-r--r--docs/ref/django-admin.txt8
-rw-r--r--docs/ref/settings.txt19
3 files changed, 30 insertions, 3 deletions
diff --git a/docs/ref/contrib/gis/deployment.txt b/docs/ref/contrib/gis/deployment.txt
index 14f803d54f..4cea022815 100644
--- a/docs/ref/contrib/gis/deployment.txt
+++ b/docs/ref/contrib/gis/deployment.txt
@@ -54,7 +54,7 @@ Example::
number of ``processes`` instead.
For more information, please consult Django's
-:doc:`mod_wsgi documentation </howto/deployment/modwsgi>`.
+:doc:`mod_wsgi documentation </howto/deployment/wsgi/modwsgi>`.
``mod_python``
--------------
@@ -62,8 +62,8 @@ For more information, please consult Django's
.. warning::
Support for mod_python will be deprecated in a future release of Django. If
you are configuring a new deployment, you are strongly encouraged to
- consider using :doc:`mod_wsgi </howto/deployment/modwsgi>` or any of the
- other :doc:`supported backends </howto/deployment/index>`.
+ consider using :doc:`mod_wsgi </howto/deployment/wsgi/modwsgi>` or any of
+ the other :doc:`supported servers </howto/deployment/index>`.
Example::
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index f397b04a1f..519ef3c766 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -504,6 +504,10 @@ supports the FastCGI protocol. See the :doc:`FastCGI deployment documentation
</howto/deployment/fastcgi>` for details. Requires the Python FastCGI module from
`flup`_.
+.. versionadded:: 1.4
+ Internally, this wraps the WSGI application object specified by the
+ :setting:`WSGI_APPLICATION` setting.
+
.. _flup: http://www.saddi.com/software/flup/
The options accepted by this command are passed to the FastCGI library and
@@ -628,6 +632,10 @@ If you run this script as a user with normal privileges (recommended), you
might not have access to start a port on a low port number. Low port numbers
are reserved for the superuser (root).
+.. versionadded:: 1.4
+ This server uses the WSGI application object specified by the
+ :setting:`WSGI_APPLICATION` setting.
+
DO NOT USE THIS SERVER IN A PRODUCTION SETTING. It has not gone through
security audits or performance tests. (And that's how it's gonna stay. We're in
the business of making Web frameworks, not Web servers, so improving this
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
index 4ff5d4d068..c3539192f3 100644
--- a/docs/ref/settings.txt
+++ b/docs/ref/settings.txt
@@ -2095,6 +2095,25 @@ A boolean that specifies whether to use the X-Forwarded-Host header in
preference to the Host header. This should only be enabled if a proxy
which sets this header is in use.
+.. setting:: WSGI_APPLICATION
+
+WSGI_APPLICATION
+----------------
+
+.. versionadded:: 1.4
+
+Default: ``None``
+
+The full Python path of the WSGI application object that Django's built-in
+servers (e.g. :djadmin:`runserver`) will use. The :djadmin:`django-admin.py
+startproject <startproject>` management command will create a simple
+``wsgi.py`` file with an ``application`` callable in it, and point this setting
+to that ``application``.
+
+If not set, the return value of :func:`django.core.wsgi.get_wsgi_application`
+will be used. In this case, the behavior of :djadmin:`runserver` will be
+identical to previous Django versions.
+
.. setting:: YEAR_MONTH_FORMAT
YEAR_MONTH_FORMAT