first of all the above answers of our friends have cleared everything about how to get all post data. Again I can explain for you that first check the request method, then you can print out on console as well.
if request.method == 'POST':
print(request.POST)
BTW, request.POST returns a dictionary structured data, so if you know the requested data already then you can pass within the POST to retrieve.
if request.method == 'POST':
print(request.POST['username'])
but, if you want to work on the requested I mean you want to filter out the desired data then just create a dictionary object then work on that.
post_data = dict()
if request.method == 'POST':
post_data = request.POST
print(post_data['username'])
if you don't know the key, then you can just filter out through retrieving all keys from dictionary.
for key, value in post_data.items():
if key == 'username':
print(value)
that's it, hope I answered you well.
request.POST.keys()
?<input type="text">
I want to send are created according to the user input.