title: twillio throws AttributeError: 'str' object has no attribute 'get' in Django-python
body: <p>When I use twilio for whatsapp it recieves the message. But when I tried to send a response with <code>MessagingResponse</code> it produces this error. <code>AttributeError: 'str' object has no attribute 'get'</code></p>
  <p>The Code I have used is</p>
  <pre><code>def twillioRequest(request):
      msg = request.POST['Body']
      print(msg)
      
      resp = MessagingResponse()
      resp.message('Ok')
      print(str(resp))
      return str(resp)
  </code></pre>
  <p>Until <code>print(str(resp))</code> this statement it works fine. This code is deployed in django server and I have connected the twilio with my URL. What is the reason for this error?</p>