Skip to main content

Extendable contact form plugin for Django CMS with spam protection and i18n

Project description

Contact form plugin for Django CMS with spam protection and i18n.

If you want to use ReCAPTCHA you have to get a Public and Private Key from http://www.google.com/recaptcha. You can get them for free.

The Akismet spam protection method requires an Akismet API Key which is obtainable from http://akismet.com/ For private persons this is free, too.

Dependencies

Python Libs

If you decide to use the ReCAPTCHA spam protection method you need to install the python library “recaptcha-client” (package python-recaptcha in Debian).

If you use Akismet for spam protection “akismet” is needed. You also need to set your domain url in django admin “sites”.

Both libraries can be installed by pip or easy_install.

It is recommended but not required to use South. Again it can be easily installed by or pip or easy_install.

Installation

Download

From PyPI

You can simply type into a terminal pip install cmsplugin-contact or easy_install cmsplugin-contact.

Manually

You can download a zipped archive from http://github.com/maccesch/cmsplugin-contact/downloads.

Unzip the file you downloaded. Then go in your terminal and cd into the unpacked folder. Then type python setup.py install in your terminal.

Setup

Put 'cmsplugin_contact' in your INSTALLED_APPS section in settings.py. Don’t forget to syncdb your database or migrate if you’re using South.

Settings

RECAPTCHA_PUBLIC_KEY and RECAPTCHA_PRIVATE_KEY

If you don’t want to enter the ReCATPCHA keys in the admin interface you can provide them through these settings.

AKISMET_API_KEY

The same as for ReCAPTCHA goes fo Akismet.

Extending

See examples/cmsplugin_custom_contact how to subclass cmsplugin_contact and add custom fields into it. You can override properties of the subclassed ContactPlugin and use your own templates and classes.

Project details


Download files

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

Source Distribution

cmsplugin-contact-1.0.0.tar.gz (17.0 kB view details)

Uploaded Source

File details

Details for the file cmsplugin-contact-1.0.0.tar.gz.

File metadata

File hashes

Hashes for cmsplugin-contact-1.0.0.tar.gz
Algorithm Hash digest
SHA256 953b25933e310155bcf34c0290f5236a73ea3c911b0a3f45f82701c1efcd9ba4
MD5 518f2e0a56937c50be056f6525c17414
BLAKE2b-256 40d2df4eb6642a30d255e999f4326f453a5d417e73e5678f90425af32b07d387

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page