What do you have to do to get the localized datetime formats to work in Django? I started a new project, set LANGUAGE_CODE to 'en-GB', enabled LocaleMiddleware (doesn't matter for this test though), and ran "django manage.py shell". In the shell, I had the following session:
>>> from django.conf import settings >>> settings.LANGUAGE_CODE 'en-GB' >>> settings.DATE_FORMAT 'N j, Y' >>> settings.SHORT_DATE_FORMAT 'm/d/Y' So, obviously setting the LANGUAGE_CODE doesn't seem to affect the locale that django uses when getting the date/time format strings. What variable does do this? I can see that in django/conf/locale/en_GB/formats.py there are formats for date and time, but I can't figure out what function I have to call to activate them instead of the american formats. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.