A reusable contact form app for Django.
Project description
bitmazk-contact-form
A reusable contact form app for Django. Ready for multilingual sites.
At the moment this contact form does not redirect to a success page. Instead it adds a variable success to the template context. The developer can then just output some success message next to the form.
The project aims to be used in conjunction with django-cms. Therefore the package comes with a cms_app.py file and can be integrated into your CMS pages via an AppHook. We might add a cms_plugins.py, as well.
The code is heavily influenced by the wonderful django-contact-form of Jannis Leidel. We just applied our own coding standards and ported it to Class Based Generic Views. In fact, this project has lesser features than the original one (i.e. no spam protection, yet)!
Prerequisites
Django 1.3
Installation
Install this package:
pip install -e git://github.com/bitmazk/bitmazk-contact-form#egg=contact_form
Add contact_form to your INSTALLED_APPS:
INSTALLED_APPS = ( [...] 'contact_form', }
Add CONTACT_FORM_RECEPIENTS to your settings.py:
CONTACT_FORM_RECEPIENTS = ( ('Foo Bar', 'foobar@example.com'), )
Make sure to have a block called contact_form in your template:
{% block contact_form %}
If the output does not fit your needs, just override the templates provided by this package.
Create a CMS page, assign it the template that has the contact_form block and add the Contact Form AppHook to the page.
Configuration
Set ENABLE_CAPTCHA=True if you want to show an image captcha.
TODO: Describe email settings for settings.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for bitmazk-contact-form-0.0.3.alpha.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 502ca4b5b0b2cbcb4393f414779b5eea52f78edc98131d183ab17c1190aaa776 |
|
MD5 | 7c7ab130240aa009088c35b07c7a5fa9 |
|
BLAKE2b-256 | 112b66f5d5adf5ecdface8c9c8c3510616c958090a682d40cf5c1f86519610b5 |