#15064: DJANGO_SETTINGS_MODULE doesn't work with runserver
-------------------------------------+-------------------------------------
Reporter: olau | Owner: ShawnMilo
Type: Bug | Status: new
Milestone: | Component: Core (Management
Version: 1.3 | commands)
Resolution: | Severity: Normal
Triage Stage: Accepted | Keywords:
Needs documentation: 0 | Has patch: 1
Patch needs improvement: 1 | Needs tests: 0
| Easy pickings: 1
-------------------------------------+-------------------------------------
Changes (by SmileyChris):
* needs_better_patch: 0 => 1
* stage: Ready for checkin => Accepted
Comment:
Clean up should happen in the `tearDown` method.
It would also look cleaner to just not touch
`os.environ['DJANGO_SETTINGS_MODULE']` if it's already set.
One other take-it-or-leave-it change (since it is more correct but result
in a bigger code change) would be to move the `settings_name` generation
code inside the only conditional that will use it.
--
Ticket URL: <http://code.djangoproject.com/ticket/15064#comment:11>
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.