[英]What is the best way to implement Django 3 Modal forms?
I appreciate it if somebody gives the main idea of how to handle submission/retrieval form implementation in Bootstrap modals.如果有人给出了如何在 Bootstrap 模式中处理提交/检索表单实现的主要想法,我将不胜感激。 I saw many examples on google but it is still ambiguous for me.我在谷歌上看到了很多例子,但对我来说仍然是模棱两可的。 Why it is required to have a separate Html file for modal-forms template?为什么需要为 modal-forms 模板提供一个单独的 Html 文件? Where SQL commands will be written? SQL 命令将写在哪里? What is the flow in submission/retrieval forms (I mean steps)?提交/检索表单的流程是什么(我的意思是步骤)? What is the best practice to implement these kind of forms?实现这些形式的最佳实践是什么? I'm fairly new to Django, please be nice and helpful.我对 Django 还很陌生,请友善且乐于助人。
No need for separate file for modal-form.模态形式不需要单独的文件。 Here MVT structure following, whenever forms are used.这里MVT结构如下,无论何时使用表格。 Easy interaction to template.易于与模板交互。 Moreover if you go through Django documentation, you will get to know easily.此外,如果您阅读 Django 文档,您将很容易了解。 Submission - mention the form action url.提交 - 提及表单操作 url。 It will call that and check the django forms它会调用并检查 django 表单
if you don't mind,then you new in django first go through the following link read all pages is simple after done this site, then you go on django docs it my advice you learn flow of form submission of model如果你不介意,那么你在 django 中的新手首先通过以下链接阅读所有页面在完成这个网站后很简单,然后你继续 django docs it 我的建议你学习表单提交模型的流程
simple is better then complex简单好过复杂
then go on docs and see然后继续看文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.