title: Sending a request from django to itself
body: <p>I have a Django project that contains a second, third-party Django app. In one of my views, I need to query a view from the other app (within the same Django project).</p>
  
  <p>Currently, it works something like this:</p>
  
  <pre class="lang-py prettyprint-override"><code>import requests
  def my_view(request):
     data = requests.get('http://localhost/foo/bar').json()
     # mangle data
     return some_response
  
  </code></pre>
  
  <p>Is there a clean way to send the request without going all the way through DNS and the webserver and just go directly to the other app's view (ideally going through the middleware as well of course)</p>