Django可以多次从一个函数调用一个函数到模板中吗?
像
这样的东西Load A data into template
Call function in template and filter the query with A.id from template
Load the filtered data in template
Repeat for n times
或者我应该使用Ajax吗?
答案 0 :(得分:0)
这样做的唯一方法是使用AJAX。 Django模板不是动态的。