I'm trying to format my dates with escaped characters in the format. However, I can only seem to get them to work with the 'now' template tag, but not the 'date' filter. Some examples:
{% now "jS o\f F" %} will return '13th of March' as it should. But if I do this in the template: {{ post.pub_date|date:"jS o\f F" }} I get '13th o9:54 March' instead. from the shell: >>> from django.utils.dateformat import * >>> from datetime import datetime >>> d = datetime.now() >>> df = DateFormat(d) >>> print df.format('jS o\f F') 13th o March >>> df.format('jS o\f F') '13th o\x0c March' I just updated to lasted truck (revision 2521) with no change in behavior. I'm running python 2.3 on Linux if that makes any difference. I searched the tickets and didn't find any reference to my problem. Am I missing something? -- ---- Waylan Limberg [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---