Created
August 2, 2019 10:32
-
-
Save AliYmn/d3525fc3d357d2dd1c58f10eed89bf0e to your computer and use it in GitHub Desktop.
djange change pasword
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib.auth import get_user_model | |
User = get_user_model() | |
u = User.objects.get(email='[email protected]') | |
u.set_password('new password') | |
u.save() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment