Hi Tim.
> Thank you for your reply.
> I will try the method taught.
>
> After trying, I might ask a question again.
>
> Thank you.
>
>
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving
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.t
I think you will have to override the "rest_bramework/base.html" in your
project and remove the "urlize_quoted_links" filter.
https://github.com/encode/django-rest-framework/blob/42fd179d4ef07cef280b66f85d1915dfe6dcd7d9/rest_framework/templates/rest_framework/base.html#L181
Alternatively maybe the
Hello.
> Do you want to remove the url & use something else like the pk to
represent relationships?
No, I want my REST URLs to be hyperlinks.
> Do you just want to disable the urls?
That's it. I have stored dangerous URLs in my database. Therefore, I want
to use the Browsable API safely.
Thank
Hello,
I’ve some questions.
Do you want to remove the url & use something else like the pk to represent
relationships?
Or
Do you just want to disable the urls?
Regards.
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe
Hello.
It's convenient to be able to run REST from a browsable API using
django-rest-framework.
If JSON contains a URL, it will automatically become a hyperlink.
I handle dangerous domains, so I do not want them to be easily hyperlinked.
Please let me know if there is a way to disable the ab