Skip to main content

Django Contact Form with Google Recaptcha v3 - integration.

Project description

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.

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-contact-recaptcha-v3, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size django-contact-recaptcha-v3-1.0.1.tar.gz (5.7 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