Opened 12 years ago

Closed 12 years ago

#19694 closed Uncategorized (duplicate)

python manage.py syncdb fails if no locale is set

Reported by: gunther.stengl@… Owned by: nobody
Component: Core (Management commands) Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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

Change History (1)

comment:1 by Karen Tracey, 12 years ago

Resolution: duplicate
Status: newclosed

This has been fixed for 1.5, it was reported in #16017 (and others).

Note: See TracTickets for help on using tickets.
Back to Top