#18518: wsgi.py does not overwrite DJANGO_SETTINGS_MODULE in apache prefork
-------------------------------------+-------------------------------------
     Reporter:  schaefer@…           |                    Owner:  nobody
         Type:  Bug                  |                   Status:  reopened
    Component:  Uncategorized        |                  Version:  1.4
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Design
    Has patch:  0                    |  decision needed
  Needs tests:  0                    |      Needs documentation:  0
Easy pickings:  0                    |  Patch needs improvement:  0
                                     |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by carljm):

 This boils down to an issue of how much Django wants to privilege the
 peculiar needs of `mod_wsgi`s unusual Python execution environment over
 other WSGI app servers that execute Python in a more usual way (one
 environment, one process). If you're using one of the latter (gunicorn,
 for instance), it's pretty natural to, for instance, have separate
 "development" and "production" settings modules and choose one by setting
 DJANGO_SETTINGS_MODULE explicitly, for instance
 `DJANGO_SETTINGS_MODULE=myproject.settings.production gunicorn ...`, and
 it would be quite surprising (even anti-social) for a Django script to
 presume to unilaterally override `DJANGO_SETTINGS_MODULE` to a fixed
 value, disregarding what is set in the environment.

 That said, I recognize that there are a lot of `mod_wsgi` users, and the
 current behavior interacts quite badly with its default settings. I am
 still opposed to changing the default Django wsgi script to accommodate
 thate, but I'd certainly be in favor of a strong documentation fix, even
 including a comment directly above that line in the file.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18518#comment:12>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to