On Sun, Apr 29, 2012 at 1:09 PM, Timothy Makobu <makobu.mwambiriro@gmail.com> wrote:
Hi,I'm getting an "unknown locale" exception and yet the LANG environment variable is set:Traceback (most recent call last):File "manage.py", line 14, in <module>execute_manager(settings)File "/opt/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 459, in execute_managerutility.execute()File "/opt/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in executeself.fetch_command(subcommand).run_from_argv(self.argv)File "/opt/local/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argvself.execute(*args, **options.__dict__)File "/opt/local/lib/python2.7/site-packages/django/core/management/base.py", line 232, in executeoutput = self.handle(*args, **options)File "/opt/local/lib/python2.7/site-packages/django/core/management/base.py", line 371, in handlereturn self.handle_noargs(**options)File "/opt/local/lib/python2.7/site-packages/south/management/commands/syncdb.py", line 90, in handle_noargssyncdb.Command().execute(**options)File "/opt/local/lib/python2.7/site-packages/django/core/management/base.py", line 232, in executeoutput = self.handle(*args, **options)File "/opt/local/lib/python2.7/site-packages/django/core/management/base.py", line 371, in handlereturn self.handle_noargs(**options)File "/opt/local/lib/python2.7/site-packages/django/core/management/commands/syncdb.py", line 110, in handle_noargsemit_post_sync_signal(created_models, verbosity, interactive, db)File "/opt/local/lib/python2.7/site-packages/django/core/management/sql.py", line 189, in emit_post_sync_signalinteractive=interactive, db=db)File "/opt/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 172, in sendresponse = receiver(signal=self, sender=sender, **named)File "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py", line 73, in create_superusercall_command("createsuperuser", interactive=True, database=db)File "/opt/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 150, in call_commandreturn klass.execute(*args, **defaults)File "/opt/local/lib/python2.7/site-packages/django/core/management/base.py", line 232, in executeoutput = self.handle(*args, **options)File "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 70, in handledefault_username = get_default_username()File "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py", line 105, in get_default_usernamedefault_username = get_system_username()File "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py", line 85, in get_system_usernamereturn getpass.getuser().decode(locale.getdefaultlocale()[1])File "/opt/local/lib/python2.7/locale.py", line 503, in getdefaultlocalereturn _parse_localename(localename)File "/opt/local/lib/python2.7/locale.py", line 435, in _parse_localenameraise ValueError, 'unknown locale: %s' % localenameValueError: unknown locale: UTF-8
# echo $LANG# en_US.UTF-8
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment