title: How do I make a POST request from within a django function to rest api?
body: <p>I have xyz.py file. In this file I have a function </p>
  
  <pre><code>@api_view(['POST']) 
  def abc(request):
  </code></pre>
  
  <p>which can be accessible at a url, say <em>/algorithms/abc</em>. </p>
  
  <p>I have another function </p>
  
  <pre><code>def pkr():
  </code></pre>
  
  <p>I want to make POST request from this function to <code>abc(request)</code>. I tried 
  <code>requests.request('POST', "/algorithms/abc", data=data_input)</code> but the <code>request.data</code> at <code>abc(request)</code> is received as QueryDict (&amp; not dict) &amp; looses some texts that existed in <code>data_input</code> inside <code>pkr()</code> function. </p>