Added reCaptcha to application form

This commit is contained in:
HooVee
2016-09-27 21:13:00 +03:00
parent 23679ac06f
commit 4955fe695c
5 changed files with 410 additions and 7 deletions
+14
View File
@@ -106,6 +106,20 @@ AUTH_PASSWORD_VALIDATORS = [
},
]
#Email
# https://sendgrid.com/docs/Integrate/Frameworks/django.html
EMAIL_HOST = 'smtp.sendgrid.net'
EMAIL_HOST_USER = 'sendgrid_username'
EMAIL_HOST_PASSWORD = 'sendgrid_password'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
#ReCaptcha
# http://www.yaconiello.com/blog/integrating-google-recaptcha-to-django/
GOOGLE_RECAPTCHA_SITE_KEY = "YOUR-PUBLIC-KEY"
GOOGLE_RECAPTCHA_SECRET_KEY = "YOUR-PRIVATE-KEY"
# Internationalization
# https://docs.djangoproject.com/en/1.9/topics/i18n/