B
B
borisovdenis2017-07-18 17:34:53
Django
borisovdenis, 2017-07-18 17:34:53

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!e406ff98578b40e9adee0bc1ef2dd1a6.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
borisovdenis, 2017-07-18
@borisovdenis

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 question

Ask a Question

731 491 924 answers to any question