Django触发模板内的自定义功能

时间:2013-07-29 12:06:22

标签: python django

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吗?

1 个答案:

答案 0 :(得分:0)

这样做的唯一方法是使用AJAX。 Django模板不是动态的。