Re: How to use Authentication in DRF

2022-07-21 Thread Ammar Mohammed
How is your login view working ? Or this is your login view ? Please share the whole app views and urls. (I suggest using DRF class based views as it's alot useful and helpful when it comes to authentication and permissions) Regards, -- Ammar Mohammed On 21 Jul 2022 08:24, "Salima Begum" wrote

Re: How to use Authentication in DRF

2022-07-20 Thread Salima Begum
Thanks Ammar Mohammed for the quick response, After login to the website through Chrome browser, I got the response. But when I run from Postman to test API by mentioning Basic AUTH credentials of which I created user models login credentials it's giving home page html response but which I want

Re: How to use Authentication in DRF

2022-07-20 Thread Ammar Mohammed
Hey Salima I guess you can use access token authentication in DRF. But Do you recive the response without logging in? Please explain more please -- Ammar Mohammed +249 113075979 On 21 Jul 2022 07:08, "Salima Begum" wrote: > Hi all, > > I am trying to convert my current project(It is developed i