1👍
✅
Twilio developer evangelist here.
That isn’t a long string which you’d need a weird regex to process. That string is in the format application/x-www-form-urlencoded
. It’s the same format used to submit a form on an HTML page.
Django can already parse this type of request body, you should be able to read the contents as a dict-like object in request.POST
.
For example, you should be able to get the status by calling request.POST.get('MessageStatus')
.
Source:stackexchange.com