De Wiki inetshell
Saltar a: navegación, buscar
  • python manage.py shell
from django.contrib.auth.models import User
user = User.objects.filter(username='username').first()
user.set_password('MyPassword123')
user.save()