I am using the Django REST framework to write my level of web service in which I want to read the request payload from the request (POST). I tried the following code, but I get an empty set
@api_view(['POST'])
def login(request):
print request.POST
The content type is JSON. I tried to transfer data from the REST Client Tool. However, I can read the values of the headers, but only the payload does not come out.
source
share