Hello,
I am about to move a django website to a new server with an entire new struture from front end to back end and DB tables structure. I did solved anything, but I stil have one issue about moving hashed passwords.
I dumped data from the admin.user table of the old database and i am about to save thoose in the new database.
But the password are hashed and they all start by “pbkdf2_sha…”
What is the right method to save the hashed passwords in the new admin.user table?
Please note that by bad work of the previous developer it is impossibile to me to perform “loaddata”
So i must perform this task with a manual file load of the dumped data in .json format.
When I do the following:
user = User()
user.set_password(‘clear_password’) # → this method does hash the password
What else I can do to save the password which is already hashed?
something like this?
user.password = hashed_password
I feel it’s wrong, so I need your help
Many thanks