介してロードスーパーユーザと管理者をジャンゴにはログインできません:は私が備品を経由してスーパーユーザーに追加備品
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
ショーthet
[
{
"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の
を使うのか?