1π
β
I think youβre just seeing a logging artifact. The message is being delivered as a single POST, but the logger is breaking up the message because it is too long. Instead of just print
ing the message (which sends it to the server log), use print >> sys.stderr, request.body
and it will appear in the error log without truncation.
π€Glenn
1π
I guess that your print statement is truncating the output of the str(request.body) that happens implicitly, but the actual content of the POST is there. Try this:
import pprint
@csrf_exempt
def stackcommits(request):
pprint.pprint(request.body)
return HttpResponse("")
π€Tiago
- [Answered ]-Cannnot locate Django new user sign-up email template
- [Answered ]-Django request data as parameters
- [Answered ]-How to setup Django PyDev project with virtualenv created with pyenv
- [Answered ]-Django image upload issue
Source:stackexchange.com