Ticket #23708: 23708.diff

File 23708.diff, 1.2 KB (added by Tim Graham, 10 years ago)
  • docs/howto/deployment/wsgi/modwsgi.txt

    diff --git a/docs/howto/deployment/wsgi/modwsgi.txt b/docs/howto/deployment/wsgi/modwsgi.txt
    index 4f805c7..f29f385 100644
    a b should put in this file, and what else you can add to it.  
    6161
    6262.. warning::
    6363
    64    If multiple Django sites are run in a single mod_wsgi process, all of them
    65    will use the settings of whichever one happens to run first. This can be
    66    solved with a minor edit to ``wsgi.py`` (see comment in the file for
    67    details), or by :ref:`using mod_wsgi daemon mode<daemon-mode>` and ensuring
    68    that each site runs in its own daemon process.
     64    If multiple Django sites are run in a single mod_wsgi process, all of them
     65    will use the settings of whichever one happens to run first. This can be
     66    solved by changing::
     67
     68        os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings")
     69
     70    in ``wsgi.py``, to::
     71
     72        os.environ["DJANGO_SETTINGS_MODULE"] = "{{ project_name }}.settings"
     73
     74    or by :ref:`using mod_wsgi daemon mode<daemon-mode>` and ensuring that each
     75    site runs in its own daemon process.
    6976
    7077
    7178Using a virtualenv
Back to Top