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 is tested with Django ≥ 1.8.
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
1.3
Put sender email in Reply-To instead of From.
1.2
Responsive CSS layout.
1.1
Update for Django 1.8 and later.
1.0
Stable release.
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
Built Distribution
File details
Details for the file myks-contact-1.3.tar.gz
.
File metadata
- Download URL: myks-contact-1.3.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 089365a36d579f5739a2ae58de90c3b5e439147b354b6437e74a9783a0e36ad1 |
|
MD5 | 4aeaf3ef68739a0fe8cc8c051ce670b6 |
|
BLAKE2b-256 | c168aa89f03ad929cbd6a7cd40168d6d384a6f2b5573499fbac51d45393bcc97 |
File details
Details for the file myks_contact-1.3-py2.py3-none-any.whl
.
File metadata
- Download URL: myks_contact-1.3-py2.py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f36b30f5e55f9b0d2270a962fa28cd19a9511e9a0e1b602f99b154b72607762 |
|
MD5 | 08a61dab69aff6388f14b70883f656a9 |
|
BLAKE2b-256 | 9393fd540ee1129a50582a71399f658032d1d2372af1c71a005ecca49f2c0d41 |