python 验证码库 captcha的使用问题解决
1、先附上库的GitHub地址:https://github.com/mbi/django-simple-captch锾攒揉敫a看下帮助文档,如果把这个库应用到我们的项目中1.Download django-simple-captcha using pip by running: pip install django-simple-captcha 首先pip安装这个库2.. Add captcha to the INSTALLEDAPPS in your settings.py 然后在settings.py-->INSTALLEDAPPS

3、Add an entry to your urls.py:配置url

5、然后一脸懵逼的 F12看了下竟然 。。。。

6、windows系统,使用PIL库的ImageFont.truetype()方法时,报错:The _imagingft C mo颊俄岿髭dule is not installed说明自己电脑里安装的PIL库缺少一个freetype的库文件,我也手动安装了这个库,出现了_imagingft.pyd,但是import _imagingft时报错说DLL无法加载。现在已解决了这个问题,解决方法:1、卸载原来版本的PILpip uninstall pil2、重新安装一个已经包含freetype库的PIL安装包,可以从该地址下载,并安装。