[問題] django inlucde tag 參數問題

看板Python作者 (rockers)時間11年前 (2014/04/05 16:59), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
大家好 目前我在處理 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
文章代碼(AID): #1JFyNi_N (Python)
文章代碼(AID): #1JFyNi_N (Python)