from django.contrib.auth.models import User
user=User.objects.get(username='admin')
user.set_password('123456')
user.save()
转载于:https://my.oschina.net/jarsleo/blog/618966
from django.contrib.auth.models import User
user=User.objects.get(username='admin')
user.set_password('123456')
user.save()
转载于:https://my.oschina.net/jarsleo/blog/618966