Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

why do i get this error creating superuser django?

I’m currently using django 4 and python 3.10 tryig to create a superuser bur i get this error

Traceback (most recent call last):
File "C:\Users\sebas\Desktop\django2\myvenv\lib\site-packages\django\contrib\auth\management\commands\createsuperuser.py", line 159, in handle
validate_password(password2, self.UserModel(**fake_user_data))
File "C:\Users\sebas\Desktop\django2\myvenv\lib\site-packages\django\contrib\auth\password_validation.py", line 44, in validate_password
password_validators = get_default_password_validators()
File "C:\Users\sebas\Desktop\django2\myvenv\lib\site-packages\django\contrib\auth\password_validation.py", line 19, in get_default_password_val
idators
return get_password_validators(settings.AUTH_PASSWORD_VALIDATORS)
File "C:\Users\sebas\Desktop\django2\myvenv\lib\site-packages\django\contrib\auth\password_validation.py", line 30, in get_password_validators

validators.append(klass(**validator.get('OPTIONS', {})))

TypeError: MinimumLengthValidator.init() got an unexpected keyword argument ‘min_lenght’

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You have misspelled min_length with min_lenght.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading