pythondjangoformscontent-management-systemdjango-cms

how to use forms in 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.

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


Solution

  • 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