0
A
回答
0
我會盡力做簡單的日曆。
注:
活動 - 列出與事件對象
月 - calendar.Calendar()monthdatescalendar()的對象timedate.date列出了從Python庫
{% for week in month %}
{% for day in week %}
{% if day < Events.0.startdate.date %}
print something like <a href = "{{ Events.0.get_absolute_url }}">{{ day }} </a>
increase Events
{% else %}
{{ day }}
{% endif %}
{% endfor %}
{% endfor %}
你的問題不明確。你有兩個列表,你想在你的模板中做什麼?也許你可以添加示例輸出到你的問題。 – 2010-02-01 21:21:34