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.

Source Distribution

django-tools-contact-requests-1.0.2.tar.gz (7.4 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page