Django超级用户

忘记密码
from django.contrib.auth.models import User user =User.objects.get(username='admin') user.set_password('new_password')
user.aave()
创建超级用户
python manage.py createsuperuser
原文地址:https://www.cnblogs.com/mljqqh/p/6864709.html