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-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 872154d253be63ff663d927efc5030a27cd4f084caf5255413e40b7ec42f13a2 |
|
MD5 | d1ae757685924646cb20097329b35649 |
|
BLAKE2b-256 | e33eeb1710b17e65fd0f8a8f750c411e481876fe6d137bc42a0ae006601f337e |
Close
Hashes for django_tools_contact_requests-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b715c9168c835006d850d1ca1a1e5851cdebb2a44fca6c620db5040ed407655f |
|
MD5 | 28673dc3c231689f00fd90aede1b0674 |
|
BLAKE2b-256 | e847c41750f560263b2e45a2507a1bf7a6f3a63b5a1f5c900689b277523fa56d |