Re: Problems with locale of dates queryset

2009-01-08 Thread motard
I've been playing around with my settings file and have included a DATE_FORMAT and a DATETIME_FORMAT setting. DATETIME_FORMAT = 'j F Y H:i' DATE_FORMAT = 'j F Y' When using the date template filter on a date or datetime variable, I get my dates formatted in the format set in DATE_FORMAT. {{ my

Problems with locale of dates queryset

2009-01-07 Thread Stefan Tunsch
Hi! I'm trying to display a list of possible months in a queryset. I do so like this: premonths = MyModel.objects.dates('date_published', 'month') months = [m.strftime('%B') for m in premonths] The problem is that months get displayed in english instead of spanish, which is what I want. I ha