django 验证码
django python的验证码应用程序
使用极其简单:
第一个控制台命令:
pip install git+https://github.com/desenvolvendoweb/django-captchapy.git
第二个设置.py:
INSTALLED_APPS = (
...
'captchapy',
)
第三个views.py:
from captchapy.captcha import CaptchaForm
human = False
if request.POST:
form = CaptchaForm(request.POST)
if form.is_valid():
human = True
else:
form = CaptchaForm()
p['captcha'] = form
2022-02-23 10:28:18
25KB
Python
1