'How can I override contrib.auth.LoginView permission?

how can I override default permission on contrib.auth.LoginView?

I am working on a Django Rest Api using DRF. I am using django's default authentication methods from django.contrib.auth.

And the problem is, I can't test login via Postman, because I don't have csrf token(yes, I am using SessionAuthenctication). How am I getting csrf, if I'm not allowed to login?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source