Tuesday, September 2, 2014

Re: Apache on Windows & multiple Django apps

Most likely the docs refer to this section of wsgi.py:

# 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"] = "spcmanage.settings"

But I already have set this in wsgi.py:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings")

Daemon mode is not possible as this is only available in NON-Windows environments.

So I'm still stuck with this. I did quite a lot of search for this but apparently nobody knows an answer that actually works.

Am Montag, 1. September 2014 19:11:41 UTC+2 schrieb Collin Anderson:
See the docs on deploying with mod_wsgi:


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 using mod_wsgi daemon mode and ensuring that each site runs in its own daemon process.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/dd26b9f6-ddca-4909-b2e3-31deb904a252%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment