2👍
✅
I haven’t personally tried this out, but you could probably get the mp3 file via the backend, send the data to an HttpResponse and set streaming=True so it’ll output the file properly.
https://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpResponse.streaming
or the object that does the work (as mentioned by Brian)
https://docs.djangoproject.com/en/dev/ref/request-response/#django.http.StreamingHttpResponse
0👍
This is not a good idea, to serve static files with Django HttpResponse.
Why don’t you set up Nginx proxy? Check this: https://coderwall.com/p/rlguog
- [Answered ]-Vanilla Django Query to show 'flattened' User/Group (ManyToMany) Listing
- [Answered ]-Are django modules global – ImportError: No module named django.core.management?
Source:stackexchange.com