python - 我们可以在 Django 框架中嵌套 HTML 表单吗?
问题描述
<form action="#" method ="POST>
<input …>
<input …>
<form action ="#" method="POST>
<input …>
<input …>
<button type = "submit" name = "inner">..
</form>
<button type = "submit" name = "outer">..
</form>
我们可以使用这样的嵌套形式提交给单个函数views.py
吗?
第一个表单在 CSV 中搜索记录。然后下一个表单在单击“保存”时保存带有附加数据的信息。
解决方案
推荐阅读
- .net - 尝试安装 .Net Framework 时安装不会成功 bc “函数尝试使用保留供其他事务使用的名称。”
- android - 使用 put 请求在 retrofit2 中创建对象数组
- java - 使用数字和范围对字符串列表进行排序
- database - spring boot jpa 中是否有任何设置可以启用在 db 上触发触发器?
- python-3.x - 如何在tkinter中按下按钮时通过预设单词或短语循环标签
- python - 鸡蛋掉落问题,K 层和大量鸡蛋
- php - 我怎样才能将一个大数组快速写入 csv 文件
- android - java.lang.IllegalStateException:无法为 MyCustomView 创建层
- x11 - wl_display_dispatch 和 wl_display_roundtrip 调用的顺序
- php - Laravel 关系有很多更新或创建数组