It is Possible to send html File through Django Rest api? Please suggest

151 views
Skip to first unread message

venna venkatReddy

unread,
Mar 19, 2020, 1:23:01 AM3/19/20
to Django users
It is Possible to send html File through Django Rest API. I need how to send Template/one.html file to Other Application when they hit my API.

Please respond or suggest any url

Suraj Thapa FC

unread,
Mar 19, 2020, 3:32:32 AM3/19/20
to django...@googlegroups.com
No

On Thu, 19 Mar 2020, 10:53 am venna venkatReddy, <vennave...@gmail.com> wrote:
It is Possible to send html File through Django Rest API. I need how to send Template/one.html file to Other Application when they hit my API.

Please respond or suggest any url

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/30728453-679d-4016-893a-1e3854bdd895%40googlegroups.com.

Sai Sandeep Rayanuthala

unread,
Mar 20, 2020, 4:48:08 AM3/20/20
to django...@googlegroups.com
Yeah possible. Use content disposition. 

Andréas Kühne

unread,
Mar 20, 2020, 10:21:35 AM3/20/20
to django...@googlegroups.com
This is of course possible. If you look at the restframework examples you can run it in a html browser that returns different values than the api itself. 

Regards,

Andréas


Reply all
Reply to author
Forward
0 new messages