-
看了网上不少关于django-password-reset的教程,但个人感觉不适合新手操作,所以本篇文章希望让跟多的人看懂。
-
官网地址:https://django-password-reset.readthedocs.io/en/latest/quickstart.html
-
官网的提示:
-
接下来我就把上面官网的要求走上一遍
-
下载方式pip:pip install django-password-reset
- 把password_reset添加到setting.py的INSTALLED_APPS里面
- 把include(‘password_reset.urls’) 添加到setting.py下面的urls.py里面
- 把{% url “password_reset_recover” %} 放到你的进入密码重置页面里面。
- 在templates下面创建base.html,路径为templates/base.html</
- 把password_reset添加到setting.py的INSTALLED_APPS里面
django-password-reset邮箱重置密码
最新推荐文章于 2024-04-26 09:42:53 发布