title: Calling Django server api from android phone
body: <p>I am developing an android app. For local testing I have created a django server on my laptop. My problem is I am not able to call django apis from app code. For example, if I want to call any django server api from desktop I write "localhost:8000/polls/link/2/". Now how to replace this "localhost part of url" if calling same api from mobile. And also my desktop is connected to internet by the same mobile hotspot. So basically both desktop and phone are on same network.
  My ifconfig command on desktop shows </p>
  
  <p>And my desktop is Mac and mobile is Samsung core duo</p>