Skip to main content

Simple Django app to manage contact requests

Project description

Django Tools Contact Requests

Simple Django app to manage contact requests

Installation

  1. Install with pip install django-tools-contact-requests.

  2. Add djtools.contactrequests to your INSTALLED_APPS setting like this:

INSTALLED_APPS = [
    ...
    'djtools.contactrequests',
]
  1. 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"]
  1. It has a dependency over django-recaptcha. Follow their instructions as well: Django ReCaptcha.

  2. You can use the ContactRequestView like this:

from djtools.contactrequests.views import ContactRequestView


urlpatterns = [
    path('contact/', ContactRequestView.as_view(), name='contact'),
]
  1. 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.

Files for django-tools-contact-requests, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size django_tools_contact_requests-1.0.2-py3-none-any.whl (12.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-tools-contact-requests-1.0.2.tar.gz (7.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page