忘记密码
from django.contrib.auth.models import User user =User.objects.get(username='admin') user.set_password('new_password')
user.aave()
创建超级用户
python manage.py createsuperuser
忘记密码
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