1👍
✅
See your URL in postman. There is attached query String with the URL.So remove that query String from the URL and send parameters as a post request like this.
http://localhost:8000/api/login/
1👍
Even this is very old question, but if this answer would be helpful…
I had exactly same issue
solution:
don’t put username and password in address bar,but only
and in body put json data of your username and password as below
be careful, don’t use single quotation marks”, but use double quotation marks “” instead, otherwise will fail, no clue why
- [Answered ]-Django push notification showing error in deployment
- [Answered ]-Can not add bootstrap class with button using Django and Python
0👍
Depending on how your API is set up, you probably need to specify the content type in your request headers, Content-Type: application/json
.
Source:stackexchange.com