标签:pass from models manage min auth username get pytho
python manage.py shell
from django.contrib.auth.models import User
from django.contrib.auth.models import User
user = User.objects.get(username=‘admin‘)
user.set_password(‘Pass@word‘)
user.save()
标签:pass from models manage min auth username get pytho
原文地址:http://www.cnblogs.com/lijintian/p/7656170.html