#11633: Stop requiring DJANGO_SETTINGS_MODULE when using settings.configure
-------------------------------------+--------------------------------------
Reporter: masklinn | Owner: nobody
Status: new | Milestone:
Component: Core framework | Version: SVN
Resolution: | Keywords: settings
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------+--------------------------------------
Comment (by niall):
This doesn't appear to be the case anymore:
>>> import os
>>> from django.conf import settings
>>> print os.environ.get("DJANGO_SETTINGS_MODULE", None)
None
>>> settings.configure(**{"foo": "bar"})
>>> settings.foo
'bar'
--
Ticket URL: <http://code.djangoproject.com/ticket/11633#comment:2>
Django <http://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.