How to get Full URL or get absolute url In Django
this is use full to get full url for images or files. getting: [ { "id" : 1 , "photo_url" : "/media/media/11_sUhP0CC.png" } ] Need: (after apply below process we get full url) [ { "id" : 1 , "photo_url" : "http://localhost:8000/media/media/11_sUhP0CC.png" } ] Existing code: models.py class Car ( models . Model ): name = models . CharField ( max_length = 255 ) price = models . DecimalField ( max_digits = 5 , decimal_places = 2 ) photo = models . ImageField ( upload_to = 'cars' ) serializers.py class CarSerializer ( serializers . ModelSerializer ): class Meta : model = Car fields = ( 'id' ...