#16017: createsuperuser fails if Python can't detect default locale
-------------------------------------+-------------------------------------
     Reporter:  prestontimmons       |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Core (Management     |                  Version:  1.4
  commands)                          |               Resolution:
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:  dceu2011             |      Needs documentation:  0
    Has patch:  1                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  1                    |
-------------------------------------+-------------------------------------
Changes (by tbecker):

 * needs_better_patch:  1 => 0


Comment:

 I'm running into this bug on OSX 10.7.4 and even though it's easy to fix
 by setting the environment variable, it's annoying, and would be very off-
 putting if this was my first go-round with Django.

 If the system is not able to get a proper default locale and throws the
 TypeError, everything thereafter is perfectly satisfied dealing with the
 empty string as a return value.  Patch I submitted
 ("check_for_type_error.diff") implements Bill's suggestion.  It works for
 me after testing in a virtualenv, and is the simplest fix that could
 possibly work.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16017#comment:39>
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to