0
votes

I'm using Django and when I want to submit my contact form, i have to validate my google recaptcha. It's working locally but in production I have a 500 internal error and the mail is not sent when the form is correctly fill with the correct captcha. I added my domain name to the google recaptcha website... I have correct secret key... Again it's working locally

Captcha validate ready to send

Error after submit

1

1 Answers

0
votes

You may have solved this already, but just for future reference in case it helps someone, I can say that I had a similar issue using the django-recaptcha package and I was able to solve it by removing the following line from settings.py which I originally needlessly added:

RECAPTCHA_PROXY = {'http': 'http://127.0.0.1:8000', 'https': 'https://127.0.0.1:8000'}