django創建admin用戶的賬號密碼設置

我用的是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.


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章