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

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

问题描述

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

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.

我不知道如何继续前进。我想用简单的形式启动它,如果现在,说,一个用户名和密码文本框。如何在django-cms页面中使用django表单?我也有snippet插件。我需要一些指导。

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

推荐答案

我最近遇到了 django-form-designer

这是相当不错的,让你以wysiwyg方式设计表单。适用于独立django应用程序,并有一个额外的Django-CMS插件。注意:除了Django-CMS说明之外,您还必须遵循独立的说明进行安装。

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.

从github的说明:

From the github description:


主要功能:

Key features:


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

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

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

  • 使用drag&

  • 执行Django中包含的许多表单字段(TextField)。
  • ,EmailField,DateField等)
  • Django提供的验证规则是完全可配置的(最大长度,正则表达式等)

  • 可自定义的消息和标签

  • 支持POST和GET表单

  • 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天全站免登陆