Skip to content
Django Contact Form with Google Recaptcha v3 - Integration
Python HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
contact
form
.gitignore
README.md
manage.py
requirements.txt

README.md

django-contact-form

Django Contact Form with Google Recaptcha v3 - integration.

Install

Easy install with pip:

pip install django-contact-recaptcha-v3

Quick start

  1. Add "contact-form" to your INSTALLED_APPS setting like this::
	 INSTALLED_APPS = [
        	...
        	'contact-form',
	]
  1. Include the polls URLconf in your project urls.py like this::
	path('', include('contact-form.urls')),
  1. Run python manage.py migrate to create the form models.

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

	TEMPLATES = [
             {
              ...
             'DIRS': [os.path.join(BASE_DIR, 'templates')],
              ...
             }
         ]
  1. To setup Email and Recaptcha just paste this code with your keys in settings.py::
# Email Settings:
EMAIL_HOST = 'smtp.foo.com'
EMAIL_USE_TLS = True
EMAIL_PORT = 587
EMAIL_HOST_USER = 'foo@gfoo.com'
EMAIL_HOST_PASSWORD = 'swordfish'

# Recaptcha Key's #
RECAPTCHA_SITE_KEY = ""
RECAPTCHA_SECRET_KEY = ""
  1. Visit http://127.0.0.1:8000/contact/ to check the contact-form.

How it looks:

contact-form-vid-presentation

You can’t perform that action at this time.