Taht woks!

Thanks a lot.

On 5 feb, 18:49, "Chris Brand" <[EMAIL PROTECTED]> wrote:
> Try {{ object.pub_date|date }}
>
> Chris
>
> > -----Original Message-----
> > From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED]
> > On Behalf Of Matias
> > Sent: 4 February 2007 1:50 PM
> > To: Django users
> > Subject: DATETIME_FORMAT ignored
>
> > Hi,
>
> > Hi,
>
> > I'm my settings.py I've added the following line:
>
> > DATETIME_FORMAT = 'j/n/y'
>
> > and then in my template I print a DateTimeField of an object like
> > this:
>
> > {{object.pub_date}}
>
> > But, the format I specified on the settings.py file doesn't seem to
> > have any
> > effect.
>
> > Also, the DATETIME_FORMAT value is ignored in the admin interface.
>
> > What am I doing wrong?
>
> > Thanks.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to