Re: Site wide date format

2008-07-16 Thread web-junkie
Wouldn't it be useful to use that setting as a default for the date filter, so you wouldn't need to specify a format every time? I could write a patch.. On 15 Jul., 15:31, Arien <[EMAIL PROTECTED]> wrote: > On Tue, Jul 15, 2008 at 8:14 AM, Adam Peacock <[EMAIL PROTECTED]> wrote: > > > I'm looking

Re: Site wide date format

2008-07-15 Thread Adam Peacock
Thank you for the quick response - I think I'm going to go with the custom filter for maximum flexability On Jul 15, 9:25 am, "Brett Hoerner" <[EMAIL PROTECTED]> wrote: > On Tue, Jul 15, 2008 at 8:14 AM, Adam Peacock <[EMAIL PROTECTED]> wrote: > > Is this possible? > > Not with the current date

Re: Site wide date format

2008-07-15 Thread Arien
On Tue, Jul 15, 2008 at 8:14 AM, Adam Peacock <[EMAIL PROTECTED]> wrote: > > I'm looking for a consistent way to format dates across my site, > without having to put the format into every template. Is it possible > to set a default date format for the "date" filter? For example, I > want {{ var.

Re: Site wide date format

2008-07-15 Thread Brett Hoerner
On Tue, Jul 15, 2008 at 8:14 AM, Adam Peacock <[EMAIL PROTECTED]> wrote: > Is this possible? Not with the current date filter. You could make your own templatetag that just wraps the existing one, though. http://www.djangoproject.com/documentation/templates_python/#writing-custom-template-tags