Re: now template tag and predefined format DATE_FORMAT problem

2011-02-10 Thread creecode
Hey Daniel, On Feb 10, 8:36 am, Daniel Roseman wrote: > Er... blush... I had a go at this myself last night, and have already raised > a ticket. I'll mark yours as a duplicate (our fixes were pretty much the > same). Sorry about that. No problem. As long as it is fixed! :-) Toodle-loo

Re: now template tag and predefined format DATE_FORMAT problem

2011-02-10 Thread Daniel Roseman
On Thursday, February 10, 2011 4:04:14 PM UTC, creecode wrote: > > On Feb 9, 9:17 am, Daniel Roseman wrote: > > It would be worth raising a ticket for this. > > Done! < http://code.djangoproject.com/ticket/15267 >. > > Toodle-l.. > creecode Er... blush... I had a go at this m

Re: now template tag and predefined format DATE_FORMAT problem

2011-02-10 Thread creecode
On Feb 9, 9:17 am, Daniel Roseman wrote: It would be worth raising a ticket for this. Done! < http://code.djangoproject.com/ticket/15267 >. Toodle-l.. creecode -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: now template tag and predefined format DATE_FORMAT problem

2011-02-09 Thread creecode
docs.djangoproject.com/en/1.2/ref/templates/builtins/#date Thank you. I am aware of how to use the custom format. What I am trying to do is use the predefined formats DATE_FORMAT, DATETIME_FORMAT, SHORT_DATE_FORMAT or SHORT_DATETIME_FORMAT as specifically mentioned in the docs for the now template

Re: now template tag and predefined format DATE_FORMAT problem

2011-02-09 Thread Fred Chevitarese
dpress.com > > > > > > 2011/2/9 creecode > > Hello all, >> >> I'm trying to use the now template tag < >> http://docs.djangoproject.com/en/1.2/ref/templates/builtins/#now > >> with the predefined format DATE_FORMAT and the now tag seems to be >

Re: now template tag and predefined format DATE_FORMAT problem

2011-02-09 Thread Fred Chevitarese
ese - GNU/Linux http://chevitarese.wordpress.com 2011/2/9 creecode > Hello all, > > I'm trying to use the now template tag < > http://docs.djangoproject.com/en/1.2/ref/templates/builtins/#now > > with the predefined format DATE_FORMAT and the now tag seems to be > pr

Re: now template tag and predefined format DATE_FORMAT problem

2011-02-09 Thread creecode
ednesday, February 9, 2011 3:31:53 PM UTC, creecode wrote: > > > Hello all, > > > I'm trying to use the now template tag < > >http://docs.djangoproject.com/en/1.2/ref/templates/builtins/#now> > > with the predefined format DATE_FORMAT and the now tag seem

Re: now template tag and predefined format DATE_FORMAT problem

2011-02-09 Thread Daniel Roseman
On Wednesday, February 9, 2011 3:31:53 PM UTC, creecode wrote: > > Hello all, > > I'm trying to use the now template tag < > http://docs.djangoproject.com/en/1.2/ref/templates/builtins/#now > > with the predefined format DATE_FORMAT and the now tag seems to be

now template tag and predefined format DATE_FORMAT problem

2011-02-09 Thread creecode
Hello all, I'm trying to use the now template tag < http://docs.djangoproject.com/en/1.2/ref/templates/builtins/#now > with the predefined format DATE_FORMAT and the now tag seems to be processing the predefined format as a custom format. I tried... {% now "DATE_FORMAT"

Re: Using DATE_FORMAT in django 1.2

2010-06-06 Thread Karen Tracey
On Sun, Jun 6, 2010 at 9:57 AM, Tomas Zulberti wrote: > On Jun 5, 8:11 pm, Karen Tracey wrote: > > On Sat, Jun 5, 2010 at 6:17 PM, Tomas Zulberti > wrote: > > > So my question is: is this a bug, or I am doing something wrong (I am > > > sure I might be doing something grong but I don't know whe

Re: Using DATE_FORMAT in django 1.2

2010-06-06 Thread Tomas Zulberti
On Jun 5, 8:11 pm, Karen Tracey wrote: > On Sat, Jun 5, 2010 at 6:17 PM, Tomas Zulberti wrote: > > So my question is: is this a bug, or I am doing something wrong (I am > > sure I might be doing something grong but I don't know where). > > I ran into the same behavior this afternoon. I think it

Re: Using DATE_FORMAT in django 1.2

2010-06-05 Thread Karen Tracey
On Sat, Jun 5, 2010 at 6:17 PM, Tomas Zulberti wrote: > So my question is: is this a bug, or I am doing something wrong (I am > sure I might be doing something grong but I don't know where). > I ran into the same behavior this afternoon. I think it is a bug: http://code.djangoproject.com/ticket/

Using DATE_FORMAT in django 1.2

2010-06-05 Thread Tomas Zulberti
bject insted of using the settings DATE_FORMAT value. After that the method, force_unicode will be used, which it doesn't use the settings at all (it does str(datetime.date())). So my question is: is this a bug, or I am doing something wrong (I am sure I might be doing something grong but I don

DATE_FORMAT

2009-10-26 Thread Sumanth
Hi all, Currently the DATE_FORMAT is used only for admin pages. Can I use similar setting where all my date objects are displayed in the same way in templates , without having to apply humanize on templates not using date function in templates? Thanks Sumanth

Re: admin DATE_FORMAT not working?

2008-10-24 Thread Lars Stavholm
got... > > TIME_ZONE = 'Europe/Stockholm' > DATE_FORMAT = "Y-m-d" > TIME_FORMAT = "H:i" > DATETIME_FORMAT = DATE_FORMAT + " " + TIME_FORMAT > > ...in my settings.py file, but no joy, these definitions are not > us

Re: admin DATE_FORMAT not working?

2008-10-24 Thread Low Kian Seong
Maybe this would shed some light: http://code.djangoproject.com/ticket/2203 On Fri, Oct 24, 2008 at 4:57 PM, Lars Stavholm <[EMAIL PROTECTED]> wrote: > > I've got... > > TIME_ZONE = 'Europe/Stockholm' > DATE_FORMAT = "Y-m-d" > TI

admin DATE_FORMAT not working?

2008-10-24 Thread Lars Stavholm
I've got... TIME_ZONE = 'Europe/Stockholm' DATE_FORMAT = "Y-m-d" TIME_FORMAT = "H:i" DATETIME_FORMAT = DATE_FORMAT + " " + TIME_FORMAT ...in my settings.py file, but no joy, these definitions are not used in the admin interface when running the devel

Re: error in your SQL syntax near '(DATE_FORMAT... on adding date_hierarchy = 'pub_date'

2006-06-13 Thread JHeasly
Andy Dustman wrote: > ... [snip] ... > Your original error was: "You have an error in your SQL syntax near > '(DATE_FORMAT(`polls_poll`.`pub_date`, '%Y-01-01 00:00:00') AS > DATETIME) FROM `p' at line 1" I'm going to guess that the bit before >

Re: error in your SQL syntax near '(DATE_FORMAT... on adding date_hierarchy = 'pub_date'

2006-06-13 Thread Andy Dustman
-q python > python-2.3.4-13.1 > [EMAIL PROTECTED] ~]$ rpm -q mysql > mysql-3.23.58-16.FC3.1 > > If I had to take a guess, I'd say that MySQL was probably changed > between 3.23 and 4.0.26 to accept the syntax Django is using. But > that's only a naive guess. Your original

Re: error in your SQL syntax near '(DATE_FORMAT... on adding date_hierarchy = 'pub_date'

2006-06-12 Thread Matt McClure
I received in a private email: > Hello Matthew, > > I'm seeing the exact same "date_hierarchy" problem and was wondering > if you received a solution offline and/or figured it out. > > Seems like the problem is somewhere among my Python 2.3.3, MySQLdb > 1.2.1 and the MySQL 3.23.53, 'cause I've got

error in your SQL syntax near '(DATE_FORMAT... on adding date_hierarchy = 'pub_date'

2006-05-19 Thread mlm
your SQL syntax near '(DATE_FORMAT(`polls_poll`.`pub_date`, '%Y-01-01 00:00:00') AS DATETIME) FROM `p' at line 1") Request Method: GET Request URL:http://carter.dyndns.org:8000/mysite/admin/polls/poll/ Exception Type: ProgrammingError Exception Value:(106