What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-19 23:50:20
Module "django.contrib.auth.hashers" does not define a "BcryptPasswordHasher" attribute/class
PASSWORD_HASHERS = [ 'django.contrib.auth.hashers.PBKDF2PasswordHasher', 'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher', 'django.contrib.auth.hashers.Argon2PasswordHasher', 'django.contrib.auth.hashers.BCryptSHA256PasswordHasher', ] Add solution -
Python 2021-10-09 12:07:08
django rest framework encrypt passwors
from rest_framework.serializers import ModelSerializer from django.contrib.auth.hashers import make_password class UserSerializer(ModelSerializer): class Meta: model = backend.models.User fields = ('username', 'email', 'password',) ... Add solution