作者qoorocker (rockers)
看板Python
标题[问题] django inlucde tag 参数问题
时间Sat Apr 5 16:59:22 2014
大家好
目前我在处理 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 参数
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 140.130.17.82
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/Python/M.1396688364.A.FD7.html