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