python admin管理页面进不去
by 伍雪颖
python manage.py shell
from django.contrib.auth.models import User
user =User.objects.get()
print user
看看有什么账号,然后修改密码进去
user =User.objects.get(username=‘admin‘)
user.set_password(‘new_password‘)
user.save()
时间: 2024-10-27 07:14:04