title: When calling a specific url, do not give full media url in django rest framework
body: <p>After changing image to url, I am giving it to API. However, even though serialization has been carried out through the same serializer, when a request is sent to a particular url, it is transferred in the form of media/image_name instead of 127.0.0.1:8000/media/image_name. I can't find the cause of this. Can you help me find the cause by looking at my code?</p>
  <p>views.py</p>
  <pre><code>class ReadAllListPostView (ModelViewSet) :
      serializer_class = PostSerializer
      queryset = Post.objects.all().order_by('-pk')
      pagination_class = LargeResultsSetPagination
  
  class ReadCommentView (ModelViewSet) :
      serializer_class = CommentSerializer
      queryset = Comment.objects.all().order_by('pk')
  
      def list (self, request, *args, **kwargs) :
          postId = self.kwargs.get('post_id')
          post = Post.objects.get(pk=postId)
          post.view_count = post.view_count + 1
          post.save(update_fields=('view_count', ))
  
          comments = self.queryset.filter(post=postId)
          serializer = self.serializer_class(comments, many=True)
          
          return Response(serializer.data)
  </code></pre>
  <p>feed\serializers.py</p>
  <pre><code>class PostSerializer (serializers.ModelSerializer) :
      owner = userProfileSerializer(read_only=True)
      like_count = serializers.ReadOnlyField()
      comment_count = serializers.ReadOnlyField()
      images = ImageSerializer(read_only=True, many=True)
      liked_people = LikeSerializer(many=True, read_only=True)
      tag = serializers.ListField(child=serializers.CharField(), allow_null=True, required=False)
      comments = CommentSerializer(many=True, read_only=True)
  
      class Meta :
          model = Post
          fields = ('id', 'owner', 'title', 'content', 'view_count', 'images', 'like_count', 'comment_count', 'liked_people', 'tag', 'created_at', 'comments')
  
      def create (self, validated_data) :
          images_data = self.context['request'].FILES
          post = Post.objects.create(**validated_data, created_at=str(datetime.now().astimezone().replace(microsecond=0).isoformat()))
          
          for i in range(1, 6) :
              image_data = images_data.get(F'image{i}')
  
              if image_data is None :
                  break
  
              Image.objects.create(post=post, image=image_data)
  
          return post
  
      def to_representation (self, instance) :
          data = super().to_representation(instance)
  
          images = data.pop('images')
          liked_people = data.pop('liked_people')
          comments = data.pop('comments')
  
          images_array = [image.get('image') for image in images]
          liked_people_array = [liked_person.get('liked_people') for liked_person in liked_people]
          comments_array = [comment for comment in comments]
  
          if comments_array != [] :
              if len(comments_array) == 1 or len(comments_array) == 2:
                  data.update({'image_urls': images_array, 'liked_people': liked_people_array, 'comment_preview': comments_array})
  
              else :
                  comments_preview_array = []
  
                  for i in range(2) :
                      random_comment = random.choice(comments_array)
                      comments_array.remove(random_comment)
                      comments_preview_array.append(random_comment)
  
                  data.update({'image_urls': images_array, 'liked_people': liked_people_array, 'comment_preview': comments_preview_array})
                      
          else :
              data.update({'image_urls': images_array, 'liked_people': liked_people_array})
  
          return data
  </code></pre>
  <p>api\serializers.py</p>
  <pre><code>class userProfileSerializer (serializers.ModelSerializer) :
      image = serializers.ImageField(use_url=True)
      following = serializers.SerializerMethodField()
      followers = serializers.SerializerMethodField()
      
      class Meta :
          model = User
          fields = ['id', 'email', 'username', 'image', 'following', 'followers']
  
      def get_following (self, obj) :
          serializer = FollowingSerializer(obj.following.all(), many=True).data
          return len(serializer)
  
      def get_followers (self, obj) :
          serializer = FollowersSerializer(obj.followers.all(), many=True).data
          return len(serializer)
  </code></pre>
  <p>If I ask you to see the comments on post 1 (feed/post/1/comments)</p>
  <pre><code>[
      {
          &quot;comment_id&quot;: 1,
          &quot;owner&quot;: {
              &quot;id&quot;: 2,
              &quot;email&quot;: &quot;dsgsdg&quot;,
              &quot;username&quot;: &quot;sdgdsg&quot;,
              &quot;image&quot;: &quot;/media/1-2_%EA%B2%8C%EC%8B%9C%EB%AC%BC.jpg&quot;,
              &quot;following&quot;: 0,
              &quot;followers&quot;: 0
          },
          &quot;content&quot;: &quot;nice to meet you&quot;,
          &quot;created_at&quot;: &quot;2020-10-19T20:35:39+09:00&quot;
      },
      {
          &quot;comment_id&quot;: 2,
          &quot;owner&quot;: {
              &quot;id&quot;: 2,
              &quot;email&quot;: &quot;dsgdsf&quot;,
              &quot;username&quot;: &quot;dsgdsgf&quot;,
              &quot;image&quot;: &quot;/media/1-2_%EA%B2%8C%EC%8B%9C%EB%AC%BC.jpg&quot;,
              &quot;following&quot;: 0,
              &quot;followers&quot;: 0
          },
          &quot;content&quot;: &quot;nice to meet yall&quot;,
          &quot;created_at&quot;: &quot;2020-10-19T20:48:51+09:00&quot;
      },
      {
          &quot;comment_id&quot;: 3,
          &quot;owner&quot;: {
              &quot;id&quot;: 2,
              &quot;email&quot;: &quot;dsgdsg&quot;,
              &quot;username&quot;: &quot;dsgsdg&quot;,
              &quot;image&quot;: &quot;/media/1-2_%EA%B2%8C%EC%8B%9C%EB%AC%BC.jpg&quot;,
              &quot;following&quot;: 0,
              &quot;followers&quot;: 0
          },
          &quot;content&quot;: &quot;gang gnagn&quot;,
          &quot;created_at&quot;: &quot;2020-10-19T20:49:06+09:00&quot;
      },
      {
          &quot;comment_id&quot;: 4,
          &quot;owner&quot;: {
              &quot;id&quot;: 2,
              &quot;email&quot;: &quot;sdgsdfg&quot;,
              &quot;username&quot;: &quot;dsgsd&quot;,
              &quot;image&quot;: &quot;/media/1-2_%EA%B2%8C%EC%8B%9C%EB%AC%BC.jpg&quot;,
              &quot;following&quot;: 0,
              &quot;followers&quot;: 0
          },
          &quot;content&quot;: &quot;yrdy&quot;,
          &quot;created_at&quot;: &quot;2020-10-19T20:54:21+09:00&quot;
      }
  ]
  </code></pre>
  <p>If the base url of the image is truncated as follows but the entire post is requested (feed/post/all)</p>
  <pre><code>[
      {
          &quot;id&quot;: 3,
          &quot;owner&quot;: {
              &quot;id&quot;: 2,
              &quot;email&quot;: &quot;safa&quot;,
              &quot;username&quot;: &quot;safasd&quot;,
              &quot;image&quot;: &quot;http://127.0.0.1:8000/media/1-2_%EA%B2%8C%EC%8B%9C%EB%AC%BC.jpg&quot;,
              &quot;following&quot;: 0,
              &quot;followers&quot;: 0
          },
          &quot;title&quot;: &quot;hi&quot;,
          &quot;content&quot;: &quot;sadfsad&quot;,
          &quot;view_count&quot;: 1,
          &quot;like_count&quot;: 1,
          &quot;comment_count&quot;: 0,
          &quot;tag&quot;: null,
          &quot;created_at&quot;: &quot;2020-10-21T21:55:29+09:00&quot;,
          &quot;image_urls&quot;: [],
          &quot;liked_people&quot;: [
              2
          ]
      },
      {
          &quot;id&quot;: 2,
          &quot;owner&quot;: {
              &quot;id&quot;: 2,
              &quot;email&quot;: &quot;sadfa&quot;,
              &quot;username&quot;: &quot;asdfa&quot;,
              &quot;image&quot;: &quot;http://127.0.0.1:8000/media/1-2_%EA%B2%8C%EC%8B%9C%EB%AC%BC.jpg&quot;,
              &quot;following&quot;: 0,
              &quot;followers&quot;: 0
          },
          &quot;title&quot;: &quot;hi&quot;,
          &quot;content&quot;: &quot;sdafadf&quot;,
          &quot;view_count&quot;: 1,
          &quot;like_count&quot;: 1,
          &quot;comment_count&quot;: 0,
          &quot;tag&quot;: null,
          &quot;created_at&quot;: &quot;2020-10-20T20:45:50+09:00&quot;,
          &quot;image_urls&quot;: [],
          &quot;liked_people&quot;: [
              2
          ]
      },
      {
          &quot;id&quot;: 1,
          &quot;owner&quot;: {
              &quot;id&quot;: 2,
              &quot;email&quot;: &quot;sadfas&quot;,
              &quot;username&quot;: &quot;sadfasdf&quot;,
              &quot;image&quot;: &quot;http://127.0.0.1:8000/media/1-2_%EA%B2%8C%EC%8B%9C%EB%AC%BC.jpg&quot;,
              &quot;following&quot;: 0,
              &quot;followers&quot;: 0
          },
          &quot;title&quot;: &quot;hello&quot;,
          &quot;content&quot;: &quot;nice to meet you&quot;,
          &quot;view_count&quot;: 16,
          &quot;like_count&quot;: 2,
          &quot;comment_count&quot;: 4,
          &quot;tag&quot;: [
              &quot;안녕 쟈기&quot;
          ],
          &quot;created_at&quot;: &quot;2020-10-19T20:20:17+09:00&quot;,
          &quot;image_urls&quot;: [],
          &quot;liked_people&quot;: [
              2,
              1
          ],
          &quot;comment_preview&quot;: [
              {
                  &quot;comment_id&quot;: 2,
                  &quot;owner&quot;: {
                      &quot;id&quot;: 2,
                      &quot;email&quot;: &quot;safasd&quot;,
                      &quot;username&quot;: &quot;safasfd&quot;,
                      &quot;image&quot;: &quot;http://127.0.0.1:8000/media/1-2_%EA%B2%8C%EC%8B%9C%EB%AC%BC.jpg&quot;,
                      &quot;following&quot;: 0,
                      &quot;followers&quot;: 0
                  },
                  &quot;content&quot;: &quot;nice to meet yall&quot;,
                  &quot;created_at&quot;: &quot;2020-10-19T20:48:51+09:00&quot;
              },
              {
                  &quot;comment_id&quot;: 4,
                  &quot;owner&quot;: {
                      &quot;id&quot;: 2,
                      &quot;email&quot;: &quot;safad&quot;,
                      &quot;username&quot;: &quot;sadfas&quot;,
                      &quot;image&quot;: &quot;http://127.0.0.1:8000/media/1-2_%EA%B2%8C%EC%8B%9C%EB%AC%BC.jpg&quot;,
                      &quot;following&quot;: 0,
                      &quot;followers&quot;: 0
                  },
                  &quot;content&quot;: &quot;safasd&quot;,
                  &quot;created_at&quot;: &quot;2020-10-19T20:54:21+09:00&quot;
              }
          ]
  </code></pre>
  <p>Like this, media url comes full.</p>