In PHP when I send post request data from template form
to controller I can use print_r($data)
to print
form
send data for debugging purpose but in Django how can I print post request form
data in view.py
If you get your form data like PHP you may use
from django.http import HttpResponse
return HttpResponse(request.POST.items())
And for more debuging follow this Link
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With