Hello, I am using this Djangosnippet:
<http://djangosnippets.org/snippets/1485/> ========== {% with my_date|date:"Y" as year %} ... {% with my_date|date:"m" as month %} ... {% get_calendar for month year as calendar %} ... ... ========== The above works, but when I try this: ========== {% get_calendar for my_date|date:"m" my_date|date:"Y" as calendar %} ... ========== I get this template syntax error: [[ Caught an exception while rendering: Failed lookup for key [my_date|date:"Y"] in u"[{u'month': u'08'}, {u'year': u'2011'}, {'my_date': datetime.datetime(2011, 8, 1, 0, 0)}]" ]] I assume that this code is the culprit: ========== m = re.search(r'for (.*?) (.*?) as (\w+)', arg) ========== Questions: 1. Is my above assumption correct? If so, is there an easy fix? 2. This does not work: ========== {% with foo as bar and baz as x %} {{ bar }}, {{ x }} {% endwith %} ========== Is there something similar that does work? I don't mind using multiple {% with %}s, but it seems like it would be cleaner as a one-liner. :) A billion thanks in advance! I really appreciate it. :) Cheers, Micky -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.