2014-03-19 41 views

回答

1

您可以從Django中直接導入該功能:

from django.contrib.auth.hashers import make_password 

,並在保存前將原始密碼給它。

相關問題