Update: When I downgraded to 1.3, everything worked ok. So I'll be using 1.3 for a while now to avoid surprises.
On Sun, Apr 29, 2012 at 1:45 PM, Timothy Makobu <[email protected] > wrote: > The database is PostgreSQL 9.1.3 > > > > On Sun, Apr 29, 2012 at 1:09 PM, Timothy Makobu < > [email protected]> 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_manager >> utility.execute() >> File >> "/opt/local/lib/python2.7/site-packages/django/core/management/__init__.py", >> line 382, in execute >> self.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_argv >> self.execute(*args, **options.__dict__) >> File >> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py", >> line 232, in execute >> output = self.handle(*args, **options) >> File >> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py", >> line 371, in handle >> return self.handle_noargs(**options) >> File >> "/opt/local/lib/python2.7/site-packages/south/management/commands/syncdb.py", >> line 90, in handle_noargs >> syncdb.Command().execute(**options) >> File >> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py", >> line 232, in execute >> output = self.handle(*args, **options) >> File >> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py", >> line 371, in handle >> return self.handle_noargs(**options) >> File >> "/opt/local/lib/python2.7/site-packages/django/core/management/commands/syncdb.py", >> line 110, in handle_noargs >> emit_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_signal >> interactive=interactive, db=db) >> File >> "/opt/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py", >> line 172, in send >> response = receiver(signal=self, sender=sender, **named) >> File >> "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py", >> line 73, in create_superuser >> call_command("createsuperuser", interactive=True, database=db) >> File >> "/opt/local/lib/python2.7/site-packages/django/core/management/__init__.py", >> line 150, in call_command >> return klass.execute(*args, **defaults) >> File >> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py", >> line 232, in execute >> output = self.handle(*args, **options) >> File >> "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py", >> line 70, in handle >> default_username = get_default_username() >> File >> "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py", >> line 105, in get_default_username >> default_username = get_system_username() >> File >> "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py", >> line 85, in get_system_username >> return getpass.getuser().decode(locale.getdefaultlocale()[1]) >> File "/opt/local/lib/python2.7/locale.py", line 503, in getdefaultlocale >> return _parse_localename(localename) >> File "/opt/local/lib/python2.7/locale.py", line 435, in >> _parse_localename >> raise ValueError, 'unknown locale: %s' % localename >> ValueError: 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 [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-users?hl=en.

