#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: Bug | Component: Database layer
Milestone: 1.3 | (models, ORM)
Version: 1.3 | Severity: Normal
Resolution: | Keywords: syncdb mysql
Triage Stage: Accepted | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 1 |
-------------------------------------+-------------------------------------
Changes (by lukeplant):
* needs_better_patch: 0 => 1
* type: Uncategorized => Bug
* stage: Unreviewed => Accepted
Comment:
Patch needs improvement - there is no reason we can't use non ASCII in
usernames. The problem is probably that the `getpass.getuser()` is
returning a byte string, rather than a unicode object. This presumably
needs to take the locale into account, probably using
`locale.getdefaultlocale()`. That should work on Linux, I don't know about
Windows.
--
Ticket URL: <http://code.djangoproject.com/ticket/15162#comment:5>
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.