title: Talking with a DJANGO server from ANDROID-STUDIO client
body: <p>i'm developing an app that the client is android studio, and the server is a rest-server built at Django.
  The client communicates with Retrofit.</p>
  
  <p>I want to use get-request to the prefix /api/users/{username} (That later should show me the details about this user).
  With Postman all of the Http requests (Get,post,delete,put) works good. So I thought that it's not a problem with the server. </p>
  
  <p>I have this API-client: </p>
  
  <pre><code>public class APIClient {
      public static final String BASE_URL = "http://127.0.0.1:8000/api/";
  //    public static final String BASE_URL = "https://api.github.com/";
      private static Retrofit retrofit = null;
  
  
      public static Retrofit getClient(){
          if (retrofit==null){
              retrofit = new Retrofit.Builder().baseUrl(BASE_URL)
                      .addConverterFactory(GsonConverterFactory.create())
                      .build();
          }
          Log.i("DEBUG APIClient","CREATED CLIENT");
          return retrofit;
      }
  }
  </code></pre>
  
  <p>When I speak with "<a href="https://api.github.com/" rel="nofollow noreferrer">https://api.github.com/</a>" (The commented line) it works great.
  (So it causes me to think that this is not a problem with the client as well)...
  But when I speak with my server, at "<a href="http://127.0.0.1:8000/api/" rel="nofollow noreferrer">http://127.0.0.1:8000/api/</a>", the call is not getting response.</p>
  
  <p>This is my server's root:</p>
  
  <pre><code>enter code here
  HTTP 200 OK
  Allow: GET, HEAD, OPTIONS
  Content-Type: application/json
  Vary: Accept
  
  {
      "users": "http://127.0.0.1:8000/api/users/",
      "login": "http://127.0.0.1:8000/api/login/",
      "routes": "http://127.0.0.1:8000/api/routes/",
      "runs": "http://127.0.0.1:8000/api/runs/"
  }
  </code></pre>
  
  <p>And when I send get-request for example localhost/api/users/Sammy/, 
  Using the github-APi I get all of the data, but with my APi I don't get response. </p>
  
  <p>Thanks alot :) </p>