• Stars
    star
    122
  • Rank 290,332 (Top 6 %)
  • Language
    Python
  • License
    BSD 3-Clause "New...
  • Created over 9 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The easiest and most flexible Django CMS Form builder β€” Create forms quickly without ever touching code. Every field type you may need is available within a simple drag and drop interface.

djangocms-forms

http://img.shields.io/travis/mishbahr/djangocms-forms.svg?style=flat-square Latest Version Downloads License http://img.shields.io/coveralls/mishbahr/djangocms-forms.svg?style=flat-square

This project requires django-cms v3.0 or higher to be properly installed and configured.

This package is compatible with Aldryn.

Quickstart

  1. Install djangocms-forms:

    pip install djangocms-forms
    
  2. Add djangocms_forms to INSTALLED_APPS:

    INSTALLED_APPS = (
        ...
        'djangocms_forms',
        ...
    )
    
  3. Sync database tables (requires south>=1.0.1 if you are using Django 1.6.x):

    python manage.py migrate
    
  4. Add djangocms_forms.urls to your project's urls module or create a django CMS page to hook the application into. In Advanced Settings, set its Application to Forms (this requires a server restart):

    urlpatterns = patterns(
        ...
        url(r'^', include('djangocms_forms.urls')),
        ...
    )
    
  5. To use reCAPTCHA for spam protection, you need to sign up for an API key pair for your site:

    DJANGOCMS_FORMS_RECAPTCHA_PUBLIC_KEY = '<recaptcha_site_key>'
    DJANGOCMS_FORMS_RECAPTCHA_SECRET_KEY = '<recaptcha_secret_key>'
    

You can register a new site via https://www.google.com/recaptcha/admin

Configuration

Plugin(s) Module - If module is None, plugin is grouped Generic group:

DJANGOCMS_FORMS_PLUGIN_MODULE = _('Generic')

Name of the plugin:

DJANGOCMS_FORMS_PLUGIN_NAME = _('Form')

The path to the default template used to render the template:

DJANGOCMS_FORMS_DEFAULT_TEMPLATE = 'djangocms_forms/form_template/default.html'

or override the Form Template dropdown choices to have different template options:

DJANGOCMS_FORMS_TEMPLATES = (
    ('djangocms_forms/form_template/default.html', _('Default')),
)

HTML5 required - When set to True all required fields inputs will be rendered with HTML5 required=required attribute:

DJANGOCMS_FORMS_USE_HTML5_REQUIRED = False

By default, djangocms-forms adds additional css classes to all form inputs. e.g. a Text field generates an <input class="textinput"> You can override this to integrate your own CSS framework:

DJANGOCMS_FORMS_WIDGET_CSS_CLASSES = {'__all__': ('form-control', ) }

e.g. the above setting would generate <input class"form-control" .... for all fields.

By default, djangocms-forms will redirect a successful form submission after 1000 milliseconds (1 second). You may provide your own redirect delay value for all forms site-wide via settings:

DJANGOCMS_FORMS_REDIRECT_DELAY = 10000  # 10 seconds

or on a per-form basis via the redirect_delay field. The order of precedence for the redirect value is always:

instance.redirect_delay > DJANGOCMS_FORMS_REDIRECT_DELAY > 1000 (default)

Preview

http://mishbahr.github.io/djangocms-forms/assets/resized/djangocms_forms_001.jpeg http://mishbahr.github.io/djangocms-forms/assets/resized/djangocms_forms_005.jpeg http://mishbahr.github.io/djangocms-forms/assets/resized/djangocms_forms_002.jpeg http://mishbahr.github.io/djangocms-forms/assets/resized/djangocms_forms_003.jpeg http://mishbahr.github.io/djangocms-forms/assets/resized/djangocms_forms_004.jpeg

You may also like...

More Repositories

1

django-modeladmin-reorder

Custom ordering for the apps and models in the admin app.
Python
257
star
2

django-users2

Custom user model for django >=1.5 with support for multiple user types.
Python
211
star
3

awesome-django-cms

A curated list of awesome django-cms add-ons. You should also checkout: https://marketplace.django-cms.org/en/
210
star
4

django-responsive2

django-responsive2 is an experimental Django app that gives web designers tools for building responsive websites. It can dynamically swap content based on breakpoints.
Python
34
star
5

django-usersettings2

The missing extension to the Django β€œsites” framework, use it to store additional information for your Django-powered sites.
Python
32
star
6

djangocms-youtube

YouTube embed plugin for your django-cms powered site with options for custom video thumbnails, analytics, SEO and more.
JavaScript
25
star
7

djangocms-instagram

A simple but versatile Instagram plugin for your django-cms powered sites.
Python
23
star
8

django-connected

Connect your Django powered sites to social networks and other online services.
Python
22
star
9

djangocms-gmaps

The easiest way to embed Google Maps for your django-cms powered site. This is a great way to display the location of your business or event.
Python
22
star
10

djangocms-twitter2

The easiest way to display tweets for your django-cms powered site, using the latest Twitter 1.1 API. It's a great option for embedding tweets on your site without third-party widgets.
Python
12
star
11

djangocms-disqus

Disqus intergration for your django-cms powered site with options for Single Sign-On (SSO), lazy loading, analytics and more.
Python
8
star
12

djangocms-usersettings2

This projects integrates django-usersettings2 with django-cms >= 3.0
Python
8
star
13

djangocms-responsive-wrapper

This projects integrates https://github.com/mishbahr/django-responsive2 with django-cms >= 3.0
Python
6
star
14

djangocms-fbcomments

The easiest way to integrate Facebook Comments for your django-cms powered site with lazy-loading, analytics and more.
JavaScript
6
star
15

django-staticgen

Push your django powered site to Amazon S3.
Python
5
star
16

django-fwdform

Simple and painless form processing for static sites.
Python
3
star
17

staticgen-demo

Source for http://staticgen-demo.herokuapp.com
Python
3
star
18

djangocms-embed

Embed any content on the web. Powered by embed.ly.
Python
1
star
19

djangocms-layout

Produce a wonderful columned design in a matter of seconds β€” [WIP]
Python
1
star