Django网站用户邮箱验证找回密码
注:Python3,Django1.9 新开一个应用:user_ex,并在settings.py里注册 依赖项:django-simple-captcha (用pip) settings.py INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', '......', 'user_ex', 'captcha', ] 主路由urls.py包含应用user_ex的路由和依赖项captcha的路由 urls.py from django.conf.urls import url from django.conf.urls import include urlpatterns = [ url(r'^user_ex/',include('user_ex.urls')), url(r'^captcha/',include('captcha.urls')), ] 应用user_ex对应路由配置 user_ex.urls.py from django.conf.urls import url