Skip to main content
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…

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djangocms-forms-maintained-201910021357.tar.gz (136.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djangocms_forms_maintained-201910021357-py2.py3-none-any.whl (152.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file djangocms-forms-maintained-201910021357.tar.gz.

File metadata

  • Download URL: djangocms-forms-maintained-201910021357.tar.gz
  • Upload date:
  • Size: 136.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.3

File hashes

Hashes for djangocms-forms-maintained-201910021357.tar.gz
Algorithm Hash digest
SHA256 01749bc68e44b91b29913f9f905d2d633fd61c34e0e0d8576b79ad7d21a12403
MD5 3285628b9a9713471409a182bf1443a3
BLAKE2b-256 21b183049b33bb578893d8ba860cbf7dae9aecd7220fa50edbbdb13171b1c63e

See more details on using hashes here.

File details

Details for the file djangocms_forms_maintained-201910021357-py2.py3-none-any.whl.

File metadata

  • Download URL: djangocms_forms_maintained-201910021357-py2.py3-none-any.whl
  • Upload date:
  • Size: 152.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.3

File hashes

Hashes for djangocms_forms_maintained-201910021357-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 331a80f5bb8bc0e0ad7ca38351692b1d60a51115d2672732ac2762a6f3efb5cf
MD5 2f584eda3d573be76e7eea651a0f486b
BLAKE2b-256 e905e588eb0be75fa91c82a8f503d47b879ab54ae2dde54105fc5851b2c0c444

See more details on using hashes here.

Release history Release notifications | RSS feed

202206141440

2 files

202206141419

2 files

202206141310

2 files

202011091152

2 files

202011091041

2 files

202011091034

2 files

202010261123

2 files

202008311510

2 files

202008211202

2 files

202004280849

2 files

202001231449

2 files

202001231326

2 files

201910021444

2 files

This release

201910021357 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page