我需要按日期对列表中的项进行分组,所以我决定使用strftime作为我的工具,但它只会给出一个错误 <ul>{% for day, item in items|groupby("date_created.dayendfor %}</ul> {% endfor %}</ul> That's the output of code example above 但是如果我将.day更改为.strftime</em
嗨,我正在编写烧瓶应用程序,但是当我从后端向html发送一个post数据时,我不能将它从字符串到html页面中的日期进行转换?post['created'].strftime('%Y-%m-%d')
但我认为错误是:jinja2.exceptions.TemplateAssertionError: No filter named