Skip to main content

Django Contact Form

Django-contact-form is a simple Django Contact Form with Google Recaptcha v3 - integration.

Quick start

  1. Add “form” to your INSTALLED_APPS setting like this:

     INSTALLED_APPS = [
            ...
            'contact-form',
    ]
  2. Include the polls URLconf in your project urls.py like this:

    path('', include('contact-form.urls')),
  3. Run python manage.py migrate to create the form models.

  4. For finding Templates add this line into TEMPLATES in settings.py:

    TEMPLATES = [
         {
          ...
         'DIRS': [os.path.join(BASE_DIR, 'templates')],
          ...
         }
     ]
  5. To setup Email and Recaptcha just paste this code with your keys in settings.py:

    EMAIL_HOST = 'smtp.foo.com'
    EMAIL_USE_TLS = True
    EMAIL_PORT = 587
    EMAIL_HOST_USER = 'foo@gfoo.com'
    EMAIL_HOST_PASSWORD = 'swordfish'
    
    RECAPTCHA_SITE_KEY = ""
    RECAPTCHA_SECRET_KEY = ""
  6. Visit http://127.0.0.1:8000/contact/ to check the contact-form.

Metadata

Release files for django-contact-recaptcha-v3 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-contact-recaptcha-v3 1.0.1
File Size Uploaded
django-contact-recaptcha-v3-1.0.1.tar.gz 5.7 kB Details

Release files / django-contact-recaptcha-v3-1.0.1.tar.gz

Download URL django-contact-recaptcha-v3-1.0.1.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9165ec0909048a588a4ce7b7f5f8bec6a70883e5c8297951926cdf03bcdb8e0a
BLAKE2b-256 checksum
How to use checksums
1f37c1a8aac6228d96e8846e944e71cc41cf62d37966366636007e02f747cd98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.4

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page