generate random password django

Solutions on MaxInterview for generate random password django by the best coders in the world

showing results for - "generate random password django"
Nicole
18 Nov 2016
1from django.contrib.auth.models import User
2
3password = User.objects.make_random_password()
4user.set_password(password)
5user.save()
Santiago
27 Jan 2019
1BaseUserManager().make_random_password() # by deafult its generate 10 charactor password
2'aYMX5Wk7Cu'
3
4# Source
5https://stackoverflow.com/questions/9480641/django-password-generator