一.django中创建用户名和密码 (venv) D:\project\py37project\Djangopro\Procrm>Python37 manage.py createsuperuser Username (leave blank to use 'administrator'): admin Email address: 2180633571@qq.com Password: Password (again): This password is too common. Bypass…
python manage.py shellfrom 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()…