[英]Django trigger custom function inside template
It is possible in Django to call a function from view into template numerous times? 在Django中,可以多次从视图调用函数到模板吗?
Something like 就像是
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
Or should I use Ajax? 还是应该使用Ajax?
The only way to do this would be to use AJAX. 唯一的方法就是使用AJAX。 Django templates are not dynamic.
Django模板不是动态的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.