看板 [ Python ]
討論串[問題] django inlucde tag 參數問題
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 1→)留言3則,0人參與, 最新作者uranusjr (←這人是超級笨蛋)時間11年前 (2014/04/05 22:36), 編輯資訊
0
0
2
內容預覽:
確實不行, 這種狀況通常是用 url ... as 來處理. https://docs.djangoproject.com/en/dev/ref/templates/builtins/#url. {% url 'blog:create_comment' as action_url %}. {% in
(還有8個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者qoorocker (rockers)時間11年前 (2014/04/05 16:59), 編輯資訊
0
0
1
內容預覽:
大家好. 目前我在處理 template 中 include 時所需傳入的參數. {% include "form.html" with action={% url "blog:create_comment" %} only %}. 似乎沒辦法處理 inlcude tag 似乎沒辦法優先處理完 ur
(還有181個字)
首頁
上一頁
1
下一頁
尾頁