Rendering xlsx files in Django Rest Framework
Renderers in Django Rest Framework add versatility to an API. They are magical! APIs generally provide serialized data as JSON.
When there is a use case to save an API's response as an excel file, drf-renderer-xlsx comes in handy. Let's dive in....
harshahegde.hashnode.dev
Thorvald
Hey, This works fine for me but what if I wanted to return it directly from a browser? I'm really struggling as to how to return a file to a browser since the accepted-header isnt set. "Object has no attribute accepted_renderer"