标签:files 技术 span pps captcha tty session types info
pip3 install django-multi-captcha-admin django-simple-captcha # 可以直接安装两个模块
INSTALLED_APPS = [ ‘django.contrib.auth‘, ‘django.contrib.contenttypes‘, ‘django.contrib.sessions‘, ‘django.contrib.messages‘, ‘django.contrib.staticfiles‘, ‘multi_captcha_admin‘, # 一定将上面的剪切到这里 ‘django.contrib.admin‘, # 添加这个 ‘captcha‘, # # 添加这个 ] # 验证码配置 MULTI_CAPTCHA_ADMIN = { ‘engine‘: ‘simple-captcha‘, }
from django.contrib import admin from django.urls import path,include urlpatterns = [ path(‘admin/‘, admin.site.urls), path(‘captcha/‘, include(‘captcha.urls‘)), # 新增 ]
python3 manage.py makemigrations
python3 manage.py migrate
标签:files 技术 span pps captcha tty session types info
原文地址:https://www.cnblogs.com/one-tom/p/13398022.html