A generic contact-form application for Django
Project description
This application provides simple, extensible contact-form functionality for Django sites.
Mail header ‘From: “Your Name” <your@email.com>’, so it’s easy to reply to the sender.
Subject provided by the user.
Uses reCAPTCHA to block spam robots.
Templates using Twitter Bootstrap version 3.
Quick start
Requirements:
Python (2.7, 3.4, 3.5, 3.6)
Django (1.11, 2.0)
To use the contact_forms.forms.ReCaptchaContactForm form:
Install django-contact-form-recaptcha:
pip install django-contact-form-recaptcha
Obtain the reCAPTCHA API keys from https://www.google.com/recaptcha.
Supply the API keys for django-contact-form-recaptcha to use. You can either place them in the Django settings RECAPTCHA_PUBLIC_KEY and RECAPTCHA_PRIVATE_KEY, or in the environment variables PYTHON_RECAPTCHA_PUBLIC_KEY and PYTHON_RECAPTCHA_PRIVATE_KEY.
Then use the following URLconf:
from django.conf.urls import include, url urlpatterns = [ # ... other URL patterns for your site ... url(r'^contact/', include('contact_form.recaptcha_urls')), ]
If you’re using Django 2.0, you can do:
from django.conf.urls import include, path urlpatterns = [ # ... other URL patterns for your site ... url(r'^contact/', include('contact_form.recaptcha_urls')), ]
Use the default templates or create your owns.
Full documentation for all functionality is included and is also available online.
Originally forked from django-contact-form.
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
Built Distribution
Hashes for django-contact-form-recaptcha-1.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19cb281c4ecb7e5bc2a069c18c70cc70c6311cea99a4ce91a1fe673f7354db72 |
|
MD5 | 334997899d1a6486dccbbc917b6ea2f5 |
|
BLAKE2b-256 | 038d055fbcbd3b3e58252d63a17a0753791fde0867949d1b0d81c9dbd3779280 |
Hashes for django_contact_form_recaptcha-1.6.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f9495980c91ec6a54367ce18439d19d9f73f09271cdf7702e8bf190bc89971b |
|
MD5 | c9b5c4d72732fcd0898705ca3116b724 |
|
BLAKE2b-256 | 9f4622e6af6c8af36b22c48caec8b652f871913501f3fbcc1a681614040f7c36 |