return HttpResponse(request.POST.all()) code example
Example 1: django httpresponseredirect
from django.http import HttpResponseRedirect
Example 2: django require_POST body
# body -> {"name":"foo", "surname":"bar}
def my_view(request):
print(request.POST) # print the QueryDict object
print(request.POST.get('name') # print foo