title: Django how to make internal api call?
body: <p>Currently I'm using <code>requests</code> library to make an internal API call. But it fails on staging.</p>
  
  <pre><code>class LoginSubscriber(generics.GenericAPIView):
      queryset = User.objects.all()
      serializer_class = LoginSerializer
      client_id = settings.client_id
      client_secret = settings.client_secret
  
      def user_logged_in(self, username, password, host):
          data = [('grant_type', 'password'),
              ('username', username),
              ('password', password),
              ('scope', 'read')]
          return requests.post(self.protocol + host + '/oauth/token/', data=data, auth=(self.client_id, self.client_secret)) #
  
  
      def post(self, request):
          serializer = self.get_serializer(data=request.data)
          if serializer.is_valid():
              data = serializer.data
              host = request.META['HTTP_HOST']
              logged_in_token = self.user_logged_in(request, data['username'],data['password'], host)
              if logged_in_token:
                  return Response({'token': logged_in_token.text}, status=status.HTTP_200_OK)
              return Response({'status': 'Failed Authentication'}, status=status.HTTP_401_UNAUTHORIZED)
          return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
  </code></pre>
  
  <p>Is there any way to achieve this without requests library?</p>