[Answer]-How to return an excel sheet and a string response using httpresponse Django Python

1👍

A HTTP response (as in the HTTP protocol, this is not limited to Django) will be treated by the browser either as a file, or displayed in the browser (html, plain text, etc). You cannot return a response with both.

Leave a comment