#15162: syncdb fails when creating super user - Django: v 1.2.4 Python: 2.6 
MySQL
Server: 5.5 Windows 7 Extra: MySQL-Python v1.2.3
-------------------------------------+-------------------------------------
               Reporter:             |        Owner:  nobody
  david_heagney                      |       Status:  reopened
                   Type:             |    Component:  Database layer
  Uncategorized                      |  (models, ORM)
              Milestone:  1.3        |     Severity:  Normal
                Version:  1.3        |     Keywords:  syncdb mysql
             Resolution:             |    Has patch:  1
           Triage Stage:             |  Needs tests:  0
  Unreviewed                         |
    Needs documentation:  0          |
Patch needs improvement:  0          |
-------------------------------------+-------------------------------------
Changes (by pawel.krzyzaniak@…):

 * status:  closed => reopened
 * severity:   => Normal
 * resolution:  worksforme =>
 * version:  1.2 => 1.3
 * has_patch:  0 => 1
 * type:   => Uncategorized


Comment:

 I had the same problem - it is caused by non-ascii characters in the
 Windows username (in my case the username is Paweł).

 quick fix (just ignoring the non-ascii character):
   contrib\auth\management\commands\createsuperuser.py, line 61:[[br]]
   ++default_username = getpass.getuser().replace(' ',
 '').decode('ascii','ignore').lower()[[br]]
   --default_username = getpass.getuser().replace(' ', '').lower()

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15162#comment:4>
Django <http://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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to