1π
β
It looks like you have an invalid AUTH_PASSWORD_VALIDATORS
setting. It should be a list of dictionaries. The error message suggests you have a list of strings instead.
The example given in the docs is:
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
'OPTIONS': {
'min_length': 9,
}
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
π€Alasdair
Source:stackexchange.com