如何通过url模式传递url路径参数来查看成功url?

时间:2019-07-21 20:53:38

标签: django django-urls

我想将 <script> var timeFormat = 'DD-MM-YYYY'; var config2 = { type: 'line', data: { datasets: [{ label: "Lorem", data: [{%for h in GolemData %} { x: "{{ h.history_date|date:" d / m / Y " }}", y: {{ h.Node_Cores}} }, {% endfor %}], fill: false, borderColor: 'red' }, ] }, options: { responsive: true, title: { display: false, text: "Core count by day" }, legend: { display: false }, scales: { xAxes: [{ type: "time", time: { format: timeFormat, tooltipFormat: 'll', unit: 'day' }, scaleLabel: { display: true, labelString: 'Date' } }], yAxes: [{ scaleLabel: { display: true, labelString: 'Cores' } }] } } }; </script> 路径中的<int:pk>传递到view_submission。你能帮忙吗?我似乎无法找到一种方法来执行此操作,而不更改我的views文件中的代码,而我真的不想这样做,因为我想将所有这些都保留在urls文件中。

success_url

谢谢!

0 个答案:

没有答案