0
curl/httpie 명령에서 보낸 POST 요청으로 사용자를 만들려고합니다. 사용자는 사용자 모델에서 생성되지만 암호는 원시 문자열 형식으로 저장됩니다. 이것이 제가하는 것입니다. 요청 POST에서 crul/http를 통해 사용자를 생성합니다.
http POST http://127.0.0.1:8000/user/ username=taco password=123
이제 관리자 사이트에 들어가서 만든 사용자의 세부 정보를 클릭하십시오. 암호는 다음과 같이 표시됩니다.
Invalid password format or unknown hashing algorithm.
Raw passwords are not stored, so there is no way to see this user's password, but you can change the password using this form.
http POST http://127.0.0.1:8000/obtain/ username=taco password=123
URL을 내가 지정된 사용자에 대한 토큰을받을 수있는 rest_framework.authtoken.views에서 수입 views.obtain_auth_token 간다.
하지만 내가 말하는 오류가 ..
"non_field_errors": [
"Unable to log in with provided credentials."
]