How to Get all post data from a request in Django?

To display POST values in django you can do:

print(list(request.POST.items()))

You can also also use dict()

print(dict(request.POST.items()))

Try use this:

def demoform(request):
    if request.method=="POST":
        inputtxt=request.POST['getrow']
        return HttpResponse(...)

But if you need print a dynamic POST data, for example send the slug of many products, (i made it 2 days ago "April 22, 2018") you need try this:

for key, value in request.POST.items():
    print('Key: %s' % (key) ) 
    # print(f'Key: {key}') in Python >= 3.7
    print('Value %s' % (value) )
    # print(f'Value: {value}') in Python >= 3.7