The command & error from createsuperuser: macpro1:dripFeedSite bobaalsma$ python manage.py createsuperuser Traceback (most recent call last): File "manage.py", line 19, in <module> execute_from_command_line(sys.argv) File "/Library/Python/2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line utility.execute() File "/Library/Python/2.7/site-packages/django/core/management/__init__.py", line 382, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/Library/Python/2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv self.execute(*args, **options.__dict__) File "/Library/Python/2.7/site-packages/django/core/management/base.py", line 232, in execute output = self.handle(*args, **options) File "/Library/Python/2.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 70, in handle default_username = get_default_username() File "/Library/Python/2.7/site-packages/django/contrib/auth/management/__init__.py", line 105, in get_default_username default_username = get_system_username() File "/Library/Python/2.7/site-packages/django/contrib/auth/management/__init__.py", line 85, in get_system_username return getpass.getuser().decode(locale.getdefaultlocale()[1]) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 503, in getdefaultlocale return _parse_localename(localename) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 435, in _parse_localename raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: UTF-8
Funny thing here is that "unknown locale: UTF-8" because yesterday the missing locale was connected to the language setting (although I don't recall the literal text) Some settings do go right, though: macpro1:dripFeedSite bobaalsma$ python manage.py shell Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> import os >>> os.environ {'LC_CTYPE': 'UTF-8', 'TERM_PROGRAM_VERSION': '303.2', 'LOGNAME': 'bobaalsma', 'USER': 'bobaalsma', 'PATH': '/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin', 'HOME': '/Users/bobaalsma', 'DISPLAY': '/tmp/launch-v6JEoW/org.x:0', 'TERM_PROGRAM': 'Apple_Terminal', 'LANG': 'nl-NL', 'TERM': 'xterm-256color', 'Apple_PubSub_Socket_Render': '/tmp/launch-h01Q9P/Render', 'TZ': 'Europe/Amsterdam', 'SHLVL': '1', 'TMPDIR': '/var/folders/c8/j7h0mxjn7x993xm51xqyfplw0000gn/T/', 'TERM_SESSION_ID': '5CEEB33C-3AC2-475C-807B-3A3909952D3F', 'SSH_AUTH_SOCK': '/tmp/launch-H5Mr23/Listeners', 'SHELL': '/bin/bash', '_': '/Library/Frameworks/Python.framework/Versions/2.7/bin/python', 'OLDPWD': '/Users/bobaalsma', '__CF_USER_TEXT_ENCODING': '0x1F5:0:5', 'Apple_Ubiquity_Message': '/tmp/launch-iTRGIn/Apple_Ubiquity_Message', 'PWD': '/Users/bobaalsma/Programmatuurontwikkeling/DripFeed/dripFeedSite', 'DJANGO_SETTINGS_MODULE': 'dripFeedSite.settings', 'COMMAND_MODE': 'unix2003'} I'm not really sure what to do here: obviously creating a superuser is not an everyday thing, so maybe an other route will suffice. On the other hand: this situation feels like an unpredictable system :(( Op donderdag 13 september 2012 16:58:11 UTC+2 schreef Bob Aalsma het volgende: > > I'm a newbie following the tutorial. In this, creating a superuser is > described, using > > manage.py createsuperuser --username=joe --email=j...@example.com > > > Using this leads to an error, which I could match to the closed ticket > #16017. > > But I couldn't find how to proceed from there. It seems some software was > changed about 4 weeks ago: > "Made createsuperuser more robust when getting current OS username." > > So where can I find it? > [I'm assuming there is a procedure for this, but I'm sorry to say I > couldn't find that either] > > Regards, > Bob > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/I0tSu_BgzHQJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.