我用的是django-1.10.2版本。
在創建sqlite數據庫admin用戶時創建用戶和密碼的方法
G:\python\code\Test>python manage.py createsuperuser
Username (leave blank to use 'sh'):
Email address: [email protected]
Password:
Password (again):
Error: Your passwords didn't match.
Password:
Password (again):
The password is too similar to the email address.
This password is too short. It must contain at least 8 characters.
Password:
Password (again):
Error: Your passwords didn't match.
Password:
Password (again):
This password is too common. #設置12345678時的提示
This password is entirely numeric.
Password:
Password (again):
Superuser created successfully.