macpro1:~ bobaalsma$ locale
LANG=
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=
macpro1:~ bobaalsma$ python -c 'import locale; print 
locale.getdefaultlocale()'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  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
macpro1:~ bobaalsma$ LANG="nl_NL.UTF-8" python -c'import locale ; print 
locale.getdefaultlocale()' 
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  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

Op vrijdag 14 september 2012 11:17:24 UTC+2 schreef Tom Evans het volgende:
>
> On Fri, Sep 14, 2012 at 8:52 AM, Bob Aalsma 
> <overhaalsg...@me.com<javascript:>> 
> wrote: 
> > The command & error from createsuperuser: 
> > macpro1:dripFeedSite bobaalsma$ python manage.py createsuperuser 
> > … 
>
> Can I ask you to try some things, just to see how your environment is 
> setup. All of these commands run on the bash shell as a regular user. 
>
> 1) The output of running "locale". Hopefully OS X has this, it should 
> show your current locale settings, as OS X sees them. Eg: 
>
> > $ locale 
> LANG=en_GB.UTF-8 
> LC_CTYPE="en_GB.UTF-8" 
> LC_COLLATE="en_GB.UTF-8" 
> LC_TIME="en_GB.UTF-8" 
> LC_NUMERIC="en_GB.UTF-8" 
> LC_MONETARY="en_GB.UTF-8" 
> LC_MESSAGES="en_GB.UTF-8" 
> LC_ALL= 
>
> 2) What does python see as your locale as? Full output from this command: 
>
> > $ python -c 'import locale ; print locale.getdefaultlocale()' 
> ('en_GB', 'UTF-8') 
>
> 3) How about this variant - attempting to coerce the correct lang: 
>
> > $ LANG="nl_NL.UTF-8" python -c 'import locale ; print 
> locale.getdefaultlocale()' 
> ('nl_NL', 'UTF-8') 
>
> Cheers 
>
> Tom 
>

-- 
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/-/TgI2QVXz9NMJ.
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.

Reply via email to