Hello, >From what I understand, you want to use a relative url instead of an absolute url.
Check out this link: https://www.django-rest-framework.org/api-guide/serializers/#absolute-and-relative-urls Hope this helps. Regards. Jamiu Olashile Salimon UTC +1 Follow me on Twitter: https://mobile.twitter.com/DKMDebugin -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/CAFhdOCMwujwOF%2B-xf-w1-BvzQ_3FJJbpxHRmyz4Qek_T%3D%2BEPfA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.