diff options
| author | Tim Graham <timograham@gmail.com> | 2014-10-27 18:17:50 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-10-27 18:17:50 -0400 |
| commit | e460b1c573359b256d79c0d4cf6aeb492deca97c (patch) | |
| tree | 799e448c6d1e0498f25031d6c49aaa3b61816ebd /docs/howto/deployment | |
| parent | af7d66b4f2015b7681edde6736d552c69d119dd4 (diff) | |
Fixed #23708 -- Corrected mod_wsgi docs reference to nonexistent comment in wsgi.py.
Thanks inglesp for the report.
Diffstat (limited to 'docs/howto/deployment')
| -rw-r--r-- | docs/howto/deployment/wsgi/modwsgi.txt | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/docs/howto/deployment/wsgi/modwsgi.txt b/docs/howto/deployment/wsgi/modwsgi.txt index 4f805c7c2c..37295407ab 100644 --- a/docs/howto/deployment/wsgi/modwsgi.txt +++ b/docs/howto/deployment/wsgi/modwsgi.txt @@ -61,12 +61,18 @@ should put in this file, and what else you can add to it. .. warning:: - 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 - solved with a minor edit to ``wsgi.py`` (see comment in the file for - details), or by :ref:`using mod_wsgi daemon mode<daemon-mode>` and ensuring - that each site runs in its own daemon process. + 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 + solved by changing:: + 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 ================== |
