擅长:python、mysql、java
<p>从<a href="https://djangobook.com/django-templates/" rel="nofollow noreferrer">django book</a>:</p>
<blockquote>
<p>Note that you do not include parentheses in the method calls.
Also, it’s not possible to pass arguments to the methods;
you can only call methods that have no required arguments.</p>
</blockquote>
<p>所以,如果你想调用一个没有模板参数的方法,那就没问题了。
否则,必须在视图中执行。</p>