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 AdminRenderer will work for you: https://www.django-rest-framework.org/api-guide/renderers/#adminrenderer Tim On Mon, Jul 8, 2019 at 11:48 AM Ken TKHR <[email protected]> wrote: > 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. > > Thanks. > > > 2019年7月8日月曜日 15時37分28秒 UTC+9 salimon jamiu olashile: >> >> 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 from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-rest-framework/79a8a073-1106-4512-bf0f-3299286fab49%40googlegroups.com > <https://groups.google.com/d/msgid/django-rest-framework/79a8a073-1106-4512-bf0f-3299286fab49%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/CAOe%2B_5nsmg-oF9904xHYKqZKsU-0O__sdj378mG1kJcNemC%2B%2BQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
