Hi all,
When I try to syncdb I am getting a "unknown locale: UTF-8" error.
I am using a recent checkout from the trunk with Postgres on MacOS X.
My database is UTF-8 and my DEFAULT_CHARSET is 'utf-8'. The
application was used to run on different platforms as-is.
Any ideas?
Thanks,
oMat
Full traceback:
------------------------
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/Library/Python/2.5/site-packages/django/core/management/
__init__.py", line 272, in execute_manager
utility.execute()
File "/Library/Python/2.5/site-packages/django/core/management/
__init__.py", line 219, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Library/Python/2.5/site-packages/django/core/management/
base.py", line 72, in run_from_argv
self.execute(*args, **options.__dict__)
File "/Library/Python/2.5/site-packages/django/core/management/
base.py", line 81, in execute
translation.activate('en-us')
File "/Library/Python/2.5/site-packages/django/utils/translation/
__init__.py", line 73, in activate
return real_activate(language)
File "/Library/Python/2.5/site-packages/django/utils/translation/
__init__.py", line 43, in delayed_loader
return g['real_%s' % caller](*args, **kwargs)
File "/Library/Python/2.5/site-packages/django/utils/translation/
trans_real.py", line 209, in activate
_active[currentThread()] = translation(language)
File "/Library/Python/2.5/site-packages/django/utils/translation/
trans_real.py", line 198, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
File "/Library/Python/2.5/site-packages/django/utils/translation/
trans_real.py", line 181, in _fetch
app = getattr(__import__(appname[:p], {}, {}, [appname[p+1:]]),
appname[p+1:])
File "/Library/Python/2.5/site-packages/django/contrib/databrowse/
__init__.py", line 1, in <module>
from django.contrib.databrowse.sites import DatabrowsePlugin,
ModelDatabrowse, DatabrowseSite, site
File "/Library/Python/2.5/site-packages/django/contrib/databrowse/
sites.py", line 3, in <module>
from django.contrib.databrowse.datastructures import EasyModel,
EasyChoice
File "/Library/Python/2.5/site-packages/django/contrib/databrowse/
datastructures.py", line 7, in <module>
from django.utils import dateformat
File "/Library/Python/2.5/site-packages/django/utils/dateformat.py",
line 15, in <module>
from django.utils.tzinfo import LocalTimezone
File "/Library/Python/2.5/site-packages/django/utils/tzinfo.py",
line 8, in <module>
DEFAULT_ENCODING = locale.getdefaultlocale()[1] or 'ascii'
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/locale.py", line 441, in getdefaultlocale
return _parse_localename(localename)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/locale.py", line 373, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: 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
-~----------~----~----~----~------~----~------~--~---