Django-管理员用户的创建
命令:python manage.py createsuperuser
python manage.py createsuperuser
Type 'manage.py help' for usage.
(env) E:\pyAPP\sysPro>python manage.py createsuperuser
用户名: admin #用户名
电子邮件地址: 个人邮箱地址 #邮箱地址
Password: #密码
Password (again): #再次输入密码
密码长度太短。密码必须包含至少 8 个字符。
密码只包含数字。
Bypass password validation and create user anyway? [y/N]: y
Superuser created successfully. # 此时创建成功
(env) E:\pyAPP\sysPro>python manage.py createsuperuser
用户名: admin
Error: That 用户名 is already taken.
用户名: