#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: 1 Needs tests: 0 | UI/UX: 0 Easy pickings: 1 | -------------------------------------+-------------------------------------
Comment (by anonymous): If you have LC_ALL in your environment you may need to run: '''export LC_ALL="en_US.UTF-8"''' in your shell as well. At least that worked for me and just doing: '''export LANG="en_US.UTF-8"''' didn't work. {{{ $ export LC_ALL="en_US.UTF-8" ;python -c 'import locale ; print locale.getdefaultlocale()' ('en_US', 'UTF-8') $ }}} Seems getdefaultlocale looks for many environment variables, in order, and use the first one it finds. -- Ticket URL: <https://code.djangoproject.com/ticket/16017#comment:33> 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.