Django Rest Framework Post Method Giving Error "method "post" Not Allowed"
I am getting error 'Method 'POST' not allowed' while running the api. I am new to DRF and don’t know what i am doing wrong. the GET method is working fine. I have problem with PO
Solution 1:
You have improper indentation in your code. The post method needs to be inside the UserList(APIView)
class. Right now is defined as a standalone function.
Post a Comment for "Django Rest Framework Post Method Giving Error "method "post" Not Allowed""