通过href(html)发送数据并通过请求函数(django)获取

问题描述 投票:0回答:1
html django templates request href
1个回答
0
投票

感谢 Zatigem 上面的回答(抱歉,花了很长时间 - 我试图应用你的答案,但忘记了),我们应该使用这样的结构: path('ex-action/int:problem_id',views.ex_action, name='ex_action'),将 Problem_id 传递给表单。 再次非常感谢,Zatigem!

© www.soinside.com 2019 - 2024. All rights reserved.