#19694: python manage.py syncdb fails if no locale is set
--------------------------------------------+--------------------
     Reporter:  gunther.stengl@…            |      Owner:  nobody
         Type:  Uncategorized               |     Status:  new
    Component:  Core (Management commands)  |    Version:  1.4
     Severity:  Normal                      |   Keywords:
 Triage Stage:  Unreviewed                  |  Has patch:  0
Easy pickings:  0                           |      UI/UX:  0
--------------------------------------------+--------------------
 I already filed a FreeBSD Problem Report under
 http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/175178

 - Django (py27-django-1.4.3) fails to create the db-superuser when doing a
 "python mange.py syncdb" AND "LC_ALL" is unset.
 - "LC_ALL=" causes the locale.getdefaultlocale() to return "(None, None)"
 which is not a String, as needed by decode().
 - If LC_ALL is set correctly, the scripts runs as expected.

 I posted a porposal for a patch, but on the other hand there's the
 question if django should run "manage.py syncdb" o  a system where
 locale.getdefaultlocale() returns 'None' instead of string. As far as I
 have seen, there's a lot of decoding done with locales, etc.

 Thanks in advance.
 Gunther

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19694>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to