0
加載超級用戶通過我加燈具超級用戶:無法登錄到Django管理通過夾具
python manage.py loaddata data.json
這裏我data.json:
[
{
"pk": 1,
"model": "auth.user",
"fields": {
"username": "admin",
"first_name": "admin",
"last_name": "admin",
"is_active": true,
"is_superuser": true,
"is_staff": true,
"groups": [],
"user_permissions": [],
"password": "admin",
"email": "[email protected]"
}
}
]
然後我嘗試登錄到管理員,但有錯誤:
"Please enter the correct username and password for a staff account. Note that both fields may be case-sensitive."
輸出
dumpdata auth.user --indent 4 > output.json
顯示泰德
[
{
"pk": 1,
"model": "auth.user",
"fields": {
"username": "admin",
"first_name": "admin",
"last_name": "admin",
"is_active": true,
"is_superuser": true,
"is_staff": true,
"last_login": "2017-09-17T13:01:51.009Z",
"groups": [],
"user_permissions": [],
"password": "admin",
"email": "[email protected]",
"date_joined": "2017-09-17T13:01:51.009Z"
}
}
]
我用django1.6和sqlite3的
什麼我錯了嗎?