[問題] django inlucde tag 參數問題
大家好
目前我在處理 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://www.ptt.cc/bbs/Python/M.1396688364.A.FD7.html
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):
Python 近期熱門文章
PTT數位生活區 即時熱門文章