为什么在验证Recaptcha V2,Django时出现500内部错误?

问题描述 投票:0回答:1

我使用的是Django,当我要提交联系表格时,我必须验证我的Google Recaptcha。它在本地运行,但是在生产中我出现500个内部错误,并且在正确填写正确的验证码后无法发送邮件。我已将域名添加到google recaptcha网站上...我有正确的密钥...再次在本地运行

Captcha validate ready to send

Error after submit

django python-3.x recaptcha production-environment
1个回答
0
投票

[您可能已经解决了这个问题,但是仅供以后参考,以防它对某人有所帮助,我可以说我在使用django-recaptcha程序包时遇到了类似的问题,并且可以通过removing解决以下问题我最初不必要添加的来自settings.py的行:

RECAPTCHA_PROXY = {'http': 'http://127.0.0.1:8000', 'https': 'https://127.0.0.1:8000'}
© www.soinside.com 2019 - 2024. All rights reserved.