I'm having a trouble on how can I dump a encrypted password data into authuser table in django, Currently I'm using python manage.py loaddata fixtures.json
to dumpdata into database it works fine but the password is not encrypted, how can I encrypt it when using loaddata?. Is there any expert can share solutions or ideas with this problem, Much appreciate!
[{"model":"auth.user",
"pk" : 2,
"fields" : {"password" : "superadmin",
"is_superuser" : "1",
"username" : "superadmin",
"first_name" : "name" ,
"last_name" : "lname" ,
"email" : "a@gmail.com" ,
"is_staff" : "1",
"is_active" : "1"
}]