Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
django_tools_contact_requests-0.0.2-py3-none-any.whl (12.4 kB) Copy SHA256 hash SHA256 Wheel py3
django-tools-contact-requests-0.0.2.tar.gz (7.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page