如何在django-cms中使用表单? [英] how to use forms in django-cms?

查看:156
本文介绍了如何在django-cms中使用表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个绝对的新手django-cms。我已经完成了教程,并将其配置与文档中提到的完全相同。现在,我必须构建一个使用表单上传产品的应用程序。



我没有提出如何向前推进的线索。我想用简单的形式开始,就像现在说的一样,用户名和密码文本框一样。如何在django-cms页面中使用django表单?我也启用了片段插件。我需要一些指导。



任何建议plsss。
谢谢

解决方案

我最近碰到过 django-form-designer



这是非常好的让你以简洁的方式设计表格。适用于独立django应用程序,并具有Django-CMS的附加插件。一个注意事项:除了要安装的Django-CMS说明之外,还必须遵循独立的说明。



从github描述:


主要功能:




  • 从Django管理员设计联系表单,搜索表单等,无需编写任何代码

  • 表单数据可以记录,CSV导出,通过电子邮件发送或转发到任何网址

  • 集成Django CMS:将表单添加到任何页面

  • 使用拖放下载以更改表单域的位置

  • 完全可折叠的管理界面,以更好地了解您的表单

  • 实现Django(TextField)中包含的许多表单字段,EmailField,DateField等)

  • Django提供的验证规则是完全可配置的(最大长度,正则表达式等)

  • 可自定义的消息和标签

  • 支持POST和GET表单



I am an absolute novice to django-cms. I have gone through the tutorial and configured it exactly the same as mentioned in the documentation. Now, I have to build an application which uses a form to upload products.

I dont have a clue as to how to move ahead with it. I want to start it with simple forms as if now, say, a username and password textbox kind of. How can I use django forms in the django-cms page? I have snippet plugin enabled in it too. I need some guidance for this.

Any suggestions plsss. thanks

解决方案

I've recently ran across django-form-designer

It's quite nice and lets you design forms in a wysiwyg manner. Works for stand alone django applications and has an additional plugin for Django-CMS. One note: you have to follow the standalone instructions in addition to the Django-CMS instructions for installation.

From the github description:

Key features:

  • Design contact forms, search forms etc from the Django admin, without writing any code
  • Form data can be logged and CSV-exported, sent via e-mail, or forwarded to any web address
  • Integration with Django CMS: Add forms to any page
  • Use drag & drop to change the position of your form fields
  • Fully collapsible admin interface for better overview over your form
  • Implements many form fields included with Django (TextField, EmailField, DateField etc)
  • Validation rules as supplied by Django are fully configurable (maximum length, regular expression etc)
  • Customizable messages and labels
  • Supports POST and GET forms

这篇关于如何在django-cms中使用表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆