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 ≥ 2.2.
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 += [ path('contact/', include('contact.urls', namespace='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.6
Update for Django 4.0.
Improved wording.
Simplified CSS.
1.5
Update for Django 3.0.
1.4
Update for Django 2.0.
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.6.tar.gz
.
File metadata
- Download URL: myks-contact-1.6.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.1 Darwin/21.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8c757d96e4c60a68d42bfa14fa4c240ef715dd0f629441cd887f0c4d8861a8a |
|
MD5 | a810adbd767feeddcda0f02d6f5c58be |
|
BLAKE2b-256 | f9b3d68734a5ad6e02c4e3fb6f9b977b83443263891a7c28d445035d40825a0a |
File details
Details for the file myks_contact-1.6-py3-none-any.whl
.
File metadata
- Download URL: myks_contact-1.6-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.1 Darwin/21.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49ca16f902dd5998950a22fc64400ad7f17323283e6e07ce9de793c0295caad0 |
|
MD5 | 240b1cffc718bb61ad4e95f437fb6d4e |
|
BLAKE2b-256 | ecc1827a271552064c8e1f397a76d64387effe2f79d8369cb913a2fcf6fb2c72 |