X-Git-Url: https://git.mdrn.pl/fnpdjango.git/blobdiff_plain/6b8969ee2970107bb5931424501c8c0f567a4488..87776dc1caec95a6eaaf011a7356e676722a11a3:/project_name/wsgi.py diff --git a/project_name/wsgi.py b/project_name/wsgi.py index b083a0e..f768265 100644 --- a/project_name/wsgi.py +++ b/project_name/wsgi.py @@ -15,6 +15,10 @@ framework. """ import os +# We defer to a DJANGO_SETTINGS_MODULE already in the environment. This breaks +# if running multiple sites in the same mod_wsgi process. To fix this, use +# mod_wsgi daemon mode with each site in its own daemon process, or use +# os.environ["DJANGO_SETTINGS_MODULE"] = "{{ project_name }}.settings" os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings") # This application object is used by any WSGI server configured to use this