[问题] django inlucde tag 参数问题

楼主: qoorocker (rockers)   2014-04-05 16:59:22
大家好
目前我在处理 template 中 include 时所需传入的参数
{% include "form.html" with action={% url "blog:create_comment" %} only %}
似乎没办法处理 inlcude tag 似乎没办法优先处理完 url tag导致出错
错误讯息
Could not parse the remainder: '{%' from '{%'
好像没办法 tag 中 再加 tag, 不知道大家是怎么处理的
对于 form表单 大家是一个个分开写, 还是直接用 include 进来
然后 action 又是如何指定呢?
============================
我是想要直接include form 传进 action url 参数

Links booklink

Contact Us: admin [ a t ] ucptt.com