简体   繁体   English

实现 Django 3 Modal 表单的最佳方法是什么?

[英]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.

相关问题 Django格式化表单的最佳方法是什么? - Django What is the best way to format forms? 在Django中实现持​​久数据模型的最佳方法是什么? - What is the best way to implement persistent data model in Django? 在django Web应用程序中实现“上次看到”功能的最佳方法是什么? - What is the best way to implement a 'last seen' function in a django web app? 实现这些模型的最佳方法是什么? - What is the best way to implement these models? Django:在模块中实现“状态”字段的最佳方式 - Django: Best way to implement “status” field in modules 在Django中实现长时间运行的子进程的最佳方法? - Best way to implement long running subprocess in Django? 在Django模型中实现依赖选择的最佳方法 - Best way to implement depedent choices in Django models 用Django实现配置应用的最佳方法是什么? - What is the best approach to implement configuration app with Django? 实现针对多个字符串的多项选择的Django模型的最佳方法是什么 - What's the best way to implement django models for multiple choice against multiple strings 实施谷歌云存储的最佳方式是什么? - What is the best way to implement google cloud storage?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM