views:

33

answers:

0

I have this field in my Post model:

created = models.DateTimeField(_('created'), default=datetime.now)

In my template I have this:

{{ post.created|date:"SHORT_DATE_FORMAT" }}

I my settings.py I have this:

LANGUAGE_CODE = 'it'
USE_L10N = True

But I get this:

th03-0500RCDT_marAMCDTE_maggio-0500RMagAMCDT

Why ?

This is the documentation: http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date