Skip to main content

A reusable app to add a basic and configurable contact form.

Project description

Contact Form App

This is aimed to be a reusable app for our cookiecutter.
Django CMS integration is provided.
It add a generic contact form with some basic configuration made available via the admin.


- create your virtualenv and `pip install -r requirements.txt`. For dev purposes, `pip install -r requirements-dev.txt`.

- In your `INSTALLED_APPS`, add:

'modeltranslation', # translation within models

'django-countries', # needed for the CountryField
'crispy_forms', # nice looking forms

`modeltranslation` should be placed on top of the installed apps.

There is an automatic check which makes sure all of these apps are in INSTALLED_APPS.

- captcha: signup for [recaptcha]( and follow their installation process on their repo. (adding RECAPTCHA_PUBLIC_KEY, RECAPTCHA_PRIVATE_KEY in your settings and so on..)

- Add url(r'^', include('emencia_contact_form.urls')) in your

- Ensure you're using foundation with crispyforms, in your settings, add:

CRISPY_TEMPLATE_PACK = 'foundation-5'


- Site: in django Admin, rename the site by default. Ensure you have SITE_ID = 1 in your

- You can then edit the ContactFormSettings in the admin to configure the email.

- EMAIL BACKEND: on success, the contact form send an email. You need to have it configured to have it working properly. [Django Email Backend](

- sitemaps: A sitemap is available in contact_form/
Configuration on the django settings and url has to be done. [doc](


There is requirements-dev.txt with pdb, django-extensions and pygraphviz.

Run tests with the following command:

To create a new db while running tests: `pytest --create-db`
The default behavior reuse the same db for performance reasons

Project details

Release history Release notifications

This version
History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
emencia_contact_form-0.3-py3-none-any.whl (25.5 kB) Copy SHA256 hash SHA256 Wheel 3.4
emencia_contact_form-0.3.tar.gz (27.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page