python manage.py shellfrom django.contrib.auth.models import Userfrom django.contrib.auth.models import User user = User.objects.get(username=‘admin‘) user.set_password(‘Pass@word‘) user.save()
修改django 后台admin用户的密码
原文:http://www.cnblogs.com/lijintian/p/7656170.html