Using templates in your StreamingHttpResponse() with Jinja2
As the official documentation states, Django is designed for short-lived requests, and it’s preferable to avoid streaming responses. But there are cases where you prefer to avoid the normal request-response cycle and stream data in your http response.