Answer the question
In order to leave comments, you need to log in
How to test Django with Postman?
The problem is this. The fact that I enter absolutely correct login and password, but 401 is constantly returned. Although everything works from the site from the user under this account and the API call also works correctly. I have assumptions that I chose the wrong type of authorization. Help me please!
Answer the question
In order to leave comments, you need to log in
A friend helped solve this problem. If your project uses standard django authorization, then you need to make one post request to /login/ and pass username and password in the body.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question