Simple Django app to manage contact requests
Project description
Django Tools Contact Requests
Simple Django app to manage contact requests
Installation
-
Install with pip install
django-tools-contact-requests
. -
Add
djtools.contactrequests
to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
...
'djtools.contactrequests',
]
- Add your contact information in your project settings:
DJTOOLS_CONTACTREQUESTS_SITE_DOMAIN = "www.example.com"
DJTOOLS_CONTACTREQUESTS_MAIL_FROM = "no-reply@example.com"
DJTOOLS_CONTACTREQUESTS_MAIL_TO = ["admin@example.com"]
-
It has a dependency over
django-recaptcha
. Follow their instructions as well: Django ReCaptcha. -
You can use the
ContactRequestView
like this:
from djtools.contactrequests.views import ContactRequestView
urlpatterns = [
path('contact/', ContactRequestView.as_view(), name='contact'),
]
- Run
python manage.py migrate
to create the contact models.
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
Built Distribution
Close
Hashes for django-tools-contact-requests-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54ffcb7be507d712d47d284597d6b281b19acae25a52f9220c45c0a1f534d029 |
|
MD5 | 2afe7fff1a91e3f923a938db338c2a45 |
|
BLAKE2b-256 | 66ba1f69c990f1ffb49f990ddfb670399766b999be7b40aad69f6fee98906bfa |
Close
Hashes for django_tools_contact_requests-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e05cebb14753ecbf380b556e209041ffd3bf33f2473ecb137ac974c55f59b410 |
|
MD5 | 98013e0ca030b9f1d1c309bb38c7bd8a |
|
BLAKE2b-256 | e293164778569ede8de4490e2335388a5c94fd8bdd501763aab05909838ea645 |