Simple contact form
Project description
Goals
myks-contact is a simple contact form. It’s adequate for a personal home page. It features a basic CAPTCHA.
Setup
myks-contact is a pluggable Django application. It works with Python >= 2.6 and Django >= 1.5.
Download and install the package from PyPI:
$ pip install myks-contact
Add contact to INSTALLED_APPS:
INSTALLED_APPS += 'contact',
This allows Django to discover the built-in templates and translations.
Define the list of recipients in the CONTACT_EMAILS setting:
CONTACT_EMAILS = ['you@example.com']
Add the application to your URLconf with the contact application namespace:
urlpatterns += [ url(r'^contact/', include('contact.urls', namespace='contact', app_name='contact')), ]
To use the built-in templates, your project’s base.html template must provide three blocks: title, extrahead and content, as shown in this example, and you must be using the staticfiles contrib app.
If these conditions are inconvenient, you can override the contact/form.html and contact/thanks.html templates.
Changelog
0.3
Refactored tests for Django 1.6.
0.2
Bundled stylesheet.
0.1
Initial public release, extracted from my private repository.
Switched the implementation to class-based generic views.
Added documentation (README file).
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
File details
Details for the file myks-contact-1.0.tar.gz
.
File metadata
- Download URL: myks-contact-1.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 141e9e5c5fa1512400bdfd4e5c5857dd00d0043b92fe4dfdd489f9f21abe8f14 |
|
MD5 | 8a197e4663c6bbaa8eb90a2e855d26a0 |
|
BLAKE2b-256 | b20ca49de2965fb2e53895ca77d137ccbc428bd6c8c5379d6d49d0c412178d23 |