Re: timesince filter and months

2005-10-06 Thread Robert Wittams
Matt wrote: > The handy timesince filter, django.utils.timesince.timesince(d), uses > 30 days to represent all months. This leads to funny results when > dealing with large timespans. For example, my daughter was born on > March 9th of this year and timesince says she is 7 months old today, > in

Improved template error messages

2005-10-06 Thread Robert Wittams
In my new admin branch, I've just committed a change that makes debugging template errors a lot easier. Here is an example of the error messages now: TemplateSyntaxError?: Unclosed tag 'if' starting at /usr/lib/python2.4/site-packages/django/conf/admin_templates/admin_submit_line.html, line 6. Lo