#17649: Creating superuser generates exception when system locale is not set
-------------------------------+--------------------
     Reporter:  chomik         |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Uncategorized  |    Version:  SVN
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 When trying to create superuser with system locale not set (either when
 syncing db for the first time or invoking manage.py createsuperuser) an
 exception is rised:
 {{{#!python
 Traceback (most recent call last):
   File "../manage.py", line 9, in <module>
     execute_from_command_line(sys.argv)
   File "/Users/neaf/sprint/django/django/core/management/__init__.py",
 line 419, in execute_from_command_line
     utility.execute()
   File "/Users/neaf/sprint/django/django/core/management/__init__.py",
 line 358, in execute
     self.fetch_command(subcommand).run_from_argv(self.argv)
   File "/Users/neaf/sprint/django/django/core/management/base.py", line
 196, in run_from_argv
     self.execute(*args, **options.__dict__)
   File "/Users/neaf/sprint/django/django/core/management/base.py", line
 232, in execute
     output = self.handle(*args, **options)
   File
 
"/Users/neaf/sprint/django/django/contrib/auth/management/commands/createsuperuser.py",
 line 63, in handle
     default_username = get_default_username()
   File
 "/Users/neaf/sprint/django/django/contrib/auth/management/__init__.py",
 line 105, in get_default_username
     default_username = get_system_username()
   File
 "/Users/neaf/sprint/django/django/contrib/auth/management/__init__.py",
 line 85, in get_system_username
     return getpass.getuser().decode(locale.getdefaultlocale()[1])
 TypeError: decode() argument 1 must be string, not None
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17649>
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