#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
-------------------------------------+-------------------------------------

Comment (by ShawnMilo):

 Replying to [comment:11 SmileyChris]:
 > 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.

 Thanks. I'll put up a new patch later today.

 Shawn

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15064#comment:12>
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.

Reply via email to