1
0
mirror of https://github.com/django/django.git synced 2025-06-05 03:29:12 +00:00

[1.6.x] Fixed #23708 -- Corrected mod_wsgi docs reference to nonexistent comment in wsgi.py.

Thanks inglesp for the report.

Backport of e460b1c573 from master
This commit is contained in:
Tim Graham 2014-10-27 18:17:50 -04:00
parent 0f14263c90
commit 54c2c5e048

View File

@ -61,12 +61,18 @@ should put in this file, and what else you can add to it.
.. warning:: .. warning::
If multiple Django sites are run in a single mod_wsgi process, all of them If multiple Django sites are run in a single mod_wsgi process, all of them
will use the settings of whichever one happens to run first. This can be will use the settings of whichever one happens to run first. This can be
solved with a minor edit to ``wsgi.py`` (see comment in the file for solved by changing::
details), or by :ref:`using mod_wsgi daemon mode<daemon-mode>` and ensuring
that each site runs in its own daemon process.
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings")
in ``wsgi.py``, to::
os.environ["DJANGO_SETTINGS_MODULE"] = "{{ project_name }}.settings"
or by :ref:`using mod_wsgi daemon mode<daemon-mode>` and ensuring that each
site runs in its own daemon process.
Using a virtualenv Using a virtualenv
================== ==================