Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A django CMS plugin to dynamically create contact forms.

Project Description
# About cmsplugin_contact_plus

[cmsplugin-contact-plus]( lets you build forms for your Django CMS project
with exactly the fields you want in the order you want with a minimal effort.

Beside the regular input fields there are "auto" fields, for example to submit the referral page, or additional, hidden values.
The form will be submitted to an email address that is defined per form. This allows to cover a lot of use cases with a single and simple plugin.

From v1.3.5, the plugin is compatible with Django >= 1.5

cmsplugin-contact-plus is licensed under the MIT License.

## Quickstart

1. To install from [PyPI](, in your virtualenv run

pip install cmsplugin_contact_plus

or to get the latest commit from GitHub,

pip install -e git+git://
2. cmsplugin-contact-plus requires as dependency. Please have a look at the "Supported Django Versions", "Installation", and "Configuration" sections of the [README](

3. Put ``cmsplugin_contact_plus`` and ``adminsortable`` in your INSTALLED_APPS `` section and verify that the [ADMINS]( setting is set as well.

4. Don't forget to migrate your database.
5. Configure Django's [e-mail settings]( appropriately.

## Configuration/Settings


Specify ``DEFAULT_FROM_EMAIL`` ( in your projects settings to send emails from a specific address. Otherwise Django's default 'webmaster@localhost' will be used.


To set the reply-to header for the email automatically, specify ``CONTACT_PLUS_REPLY_EMAIL_LABEL`` in your project settings. If the label is "your email" for example, then set ``CONTACT_PLUS_REPLY_EMAIL_LABEL='your-email'`` - basically it's the slugified field label that is used to look up the reply-to email address.


To send a carbon copy to the submitter you can set the ``CONTACT_PLUS_SEND_COPY_TO_REPLY_EMAIL`` to `True`. If a Field with the label `email` exists this email will be used as Cc Header.


Defines the required CSS class, default is `required`.


To allow users to choose between multiple contact form templates, specify the template choices in your project settings like this:

('cmsplugin_contact_plus/contact.html', 'Contact Form'),
('cmsplugin_contact_plus/contact_newsletter.html', 'Newsletter Form'),

Make sure that the templates can be loaded by Django.


Specify ``CMSPLUGIN_CONTACT_FORM_VALIDATORS`` in your projects settings to one or more [validator functions]( that are used with the CharFieldWithValidator field. Expected is a list of strings, each string should point a validator function by its full path. For example:



To make the reCAPTCHA field type available to your users, add `'captcha'` to your `INSTALLED_APPS` and define your `RECAPTCHA_PUBLIC_KEY` and `RECAPTCHA_PRIVATE_KEY` as described in [django-recaptcha's README]( A single reCAPTCHA instance per page is supported.

## Templates

If you are not using the default template settings of Django, make sure that ``'django.template.loaders.app_directories.Loader'`` is added to the [`TEMPLATES.OPTIONS.loaders`]( list in your `` file. Likewise, if your Django version is < 1.8, make sure that the above-mentioned loader is in your list of [`TEMPLATE_LOADERS`](

## Features

- Dynamic form creation
- Migrations included
- Store data in the database
- Multiple languages: currently English and Spanish translations
- reCAPTCHA and simple math captcha
- django CMS 3.0 compatible
- Template support
- Track/pass hidden data
- Signals
- Multiple file and image fields for media upload
- Handle multiple forms located on the same page

## Notes

- Migrations are available with django-cms >= 3.0.6 because we depend on [this]( migrations file.
- Collecting data is not available if ``from.is_multipart is True`` (= the form has attached files)
- If you render a form field manually, make sure that its name is: `name="{{ field.label|slugify }}"`. This is necessary for the proper validation of the form.

## TODO and planned features .
- Widget support for each field.
- Provide examples and real life case studies
- Formatted email messages, HTML?, .as_p, ?
- Allow to re-use forms on different pages.
- Add optional Honeypot field support.
- Support more Languages
- (Your great feature here)

| cmsplugin-contact-plus is free software. If you find it useful and would like to give back, please consider to make a donation using [Bitcoin]( or [PayPal]( Thank you! |
| ----- |

## Changelog
### Development

Please have a look at the latest commits for the work-in-progress development version.

### 1.3.12 - 28. 08. 2017
- Safe values and optimise boolean fields display in recipients Email

### 1.3.11 - 27. 04. 2017
- Add input placeholders

### 1.3.10 - 12. 04. 2017
- Add DateField and DateTimeField

### 1.3.9 - 10. 04. 2017
- CSV export: Restore python 2 compatibility

### 1.3.8 - 10. 04. 2017
- CSV export: Properly serialize boolean fields

### 1.3.7 - 22. 03. 2017
- Correctly quote media urls in e-mails and contact records

### 1.3.6 - 21. 03. 2017
- Remove undocumented template auto-discovery functionality

**Upgrading**: If you have relied on Contact Plus to automagically discover multiple form template choices, make sure the choices are now listed explicitly in your settings as described here:

### 1.3.5 - 22. 02. 2017
- Drop Django 1.4 support
- Replace dependency with

**Upgrading**: Remove `'inline_ordering'` from `INSTALLED_APPS`and add `'adminsortable'` instead. To ensure the compatibility of the new dependency with your project's Django version, have a look at the "Supported Django Versions", "Installation", and "Configuration" sections of the [README](

### 1.3.2 - 07. 12. 2016
- Fixed ``. Locale files are now correctly included

### 1.3.1 - 07. 11. 2016
- Added a missing migration

### 1.3.0 - 10. 10. 2016
- Renamed plugin field `submit` to `submit_button_text` to achieve django CMS 3.3/3.4 compatibility. Please migrate your database and update your templates.

### 1.2.7 - 29. 03. 2016

- French translation
- Fix setuptools compatibility issue

### 1.2.6 - 05. 01. 2015

- Added a CharFieldWithValidator field that supports validators
- Use email subject defined in plugin settings
- Set `required_css_class` of contact form
- Use more specific setting `CONTACT_PLUS_FROM_EMAIL`, and use `DEFAULT_FROM_EMAIL` as a fallback

### 1.2.5 - 10. 11. 2015

- Handle multiple forms located on the same page. See the two relevant commits [7749d44]( and [b8793f7]( for more info. Please modify your templates.

### 1.2.3

- reCAPTCHA support

### 1.1.14 - 20. 03. 2015

- Multiple file and image fields / Upload files and images, upload will be placed directly into ``MEDIA_ROOT``.

### 1.1.13 - 17. 11. 2014

- Adding Spanish translation
- Support migrations for django __1.7__ and django cms __3.0.6__

### 1.1.12

- Reply-to email support
- Added ContactRecords to store Contact History in the Database.

### 1.1.11

- Integration of a simple math captcha (PR #16)

### 1.1.10

- Removed unordered data (cleaned_data). Now use ordered_data instead.
- Fixed typo

### 1.1.9

- Fixed lower() vs. slugify() for key lookup.

### 1.1.8

- Field ordering in the email is now equal to the definition.

### 1.1.7

- django CMS 3.0 caching compatibility.

### 1.1.6

- Bugfix, missing template info,

### 1.1.5

- Trigger a signal ``contact_message_sent`` when a message was sent successfully. See .
- Multiple templates support, in your project settings define

('cmsplugin_contact_plus/contact.html', 'contact.html'),
('cmsplugin_contact_plus/hello.html', 'hello.html'),
# more templates here

To be able to use the new features, please migrate manually

``` ALTER TABLE `cmsplugin_contactplus` ADD `template` varchar(255) NOT NULL AFTER `submit`; ```

### 1.1.4

- Packaging was modified for PyPI.
- Upload script for PyPI. Internal note: just execute ``./``.

### 1.1.3
- Better readability in email.

### 1.1.2
- Patch version for PyPI with corrected, see issue #4.

### 1.1.1
- Added include for templates im, fixes issue #4.

### 1.1.0
- Generic Query parameter (GET key) to hidden field. Use this in attach additional hidden data to the form. The slugified label is used for key lookup in the GET parameters. Eg.:
label is 'Favorite Color', than the lookup in the URL is done based on 'favorite-color', in will pass {..., u'favorite-color':'blue', ...} to the email.

### 1.0.4
- Fixed default "from email address" in case ``ADMINS`` is not defined in ````. (Issue #2)
- Fixed typos and added translation markers.

### 1.0.3
- Improved Documentation
- Added ``auto_TextArea`` shortcut to create a TextArea. Note: Currently the widget defined in the plugins are ignored.
- Hidden "referral page" field. Reads referral from request.
- Generic Hidden fields. Use this in combination with JavaScript/jQuery to attach additional data to the form sent by email.

For example, the field lable for the 'CharField as HiddenInput' is named to "Object description".
Using the lable name, the ID for the input field will be 'id_object-description', the name 'object-description'.

Store data is dead easy using jQuery.

$('#id_object-description').val('Hello Hidden World'); // The string 'Hello Hidden World' will be send by email as well.

### 1.0.2
Fixed indentation /EOF in

### 1.0.1
Fixed IndentationError in

### 1.0.0
[arteria]( open sourced cmsplugin_contact_plus unter the MIT License. This plugin was built on a fork of [cmsplugin_contact]( Kudos!
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
cmsplugin_contact_plus-1.3.12.tar.gz (18.6 kB) Copy SHA256 Checksum SHA256 Source Aug 28, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting