为什么选择hCaptcha
----
相信从名称上就看出来了, captcha包括但不限于reCaptcha, hCaptcha, 以及cloudflare的Turnstile....import forms
from django.utils.translation import gettext_lazy as _
from hcaptcha.settings import DEFAULT_CONFIG...因此, 我查看了django-hCaptcha的源码, 得到发现了h-captcha-response和g-captcha-response,
查阅hCaptcha和turnstile的官方文档,...更改了其源码, 在github上发布了我的项目django-turnstile, 修改了一部分urlencode和response, 并提交到了pypi
我将前期的文章内容删除, 得到了上方的文字...你可以将django-hcaptcha换为django-turnstile, 添上turnstile的sitekey和secert, 其他api和django-hcaptcha相同
pip install