In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains the "Django how to achieve the function of finding the password through email". The content of the explanation in the article is simple and clear, and it is easy to learn and understand. now please follow the editor's train of thought to slowly deepen, to study and learn "Django how to achieve the function of finding the password by email"!
Today, learn how to reset a password by sending an email when a registered user forgets his password. Here's how to start:
First, modify django_project\ django_project\ settings.py to add mail-related configuration:
Modify django_project\ django_project\ urls.py to add the reset password url jump rule:
Create a new password_reset.html under django_project\ users\ templates\ users
Create a new one under django_project\ users\ templates\ users
Password_reset_done.html:
Create a new one under django_project\ users\ templates\ users
Password_reset_confirm.html:
Create a new one under django_project\ users\ templates\ users
Password_reset_complete.html:
Modify django_project\ users\ templates\ users\ login.html to add a link that forgot your password:
We run the python manage.py runserver startup project under the django_project folder, visit the http://127.0.0.1:8000 home page and click login, and then click to forget your password:
Clicking the password reset will prompt you that the email has been sent:
Enter the mailbox to view the email with the password reset:
Click the password reset link in the email and enter a new password to submit:
After the reset is successful, click sign in now to log in to the blog:
Thank you for your reading, the above is the content of "how to achieve the function of Django to retrieve the password through e-mail". After the study of this article, I believe you have a deeper understanding of how Django can achieve the function of finding your password by e-mail. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.