2022-08-29發表Django幾秒讀完 (大約33個字)(Django)資料庫內密碼欄位加密 - make_passwordimport make_passworduse make_password() function1234567from django.contrib.auth.hashers import make_passwordclass MyView(CreateView): ... def form_valid(self, form): pwd = form.cleaned_data['password'] pwd = make_password(pwd)#Django