Object of type ListSerializer is not JSON serializable
I want to Serialize a Django model and Show it as a DRF Response
and Im facing this error many times
Object of type ListSerializer is not JSON serializable
I want to Serialize a Django model and Show it as a DRF Response
and Im facing this error many times
getting a “invalid user or password” error while testing a api
I am trying to built an log in API but getting a a “invalid user or password” error while testing. I have checked the database and user and password is correct and exists and correct.
If POST requests are csrf protected by default What is the purpose of using @method_decorator(csrf_protect) in Django?
I think all POST, PUT, DELETE requests is CSRF protected by default in DRF, But I saw in some tutorial videos that they are using @method_decorator(csrf_protect)
on some class-based views with POST and DELETE requests, so I did it same.
If POST request are csrf protected by default What is the purpose of @method_decorator(csrf_protect) in Django?
I think all POST, PUT, DELETE requests is CSRF protected by default in DRF, But I saw in some tutorial videos that they are using @method_decorator(csrf_protect)
on some class-based views with POST and DELETE request, so I did it same.