Django reset password

clipboard.png
as shown in the picture of the program, user.set_password ("data [" password"]")
also verifies that the output is True, but check to the database and find that the password has not changed. What is the reason?
but if you do this in the database, you can change the password, for example,

user.set_password("123")
user.check_password("123")True

the picture code is the same as this, why the password can not be changed or the original password, I did not find the problem!

Feb.28,2021

because you don't have user.save () ah

  • Django cannot receive request data from ajax

    problem description I wanted to do a form verification to familiarize myself with the functions of ajax, but after typing the same code in the tutorial, my django could not receive the data sent by the page ajax. All I received was debugged by none, s...

    May.11,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be741d-3187f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be741d-3187f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?