Serving a growing audio file with Django
For large constants consider writing them as an expression and
possibly comment on the size, just in case, to make it easier to
understand.
I'm not particularly fond of waiting for the file to grow, but I guess
if it works it's fine.
Serving static files is implemented in Django, including HTTP range
parsing.  However
the one method
I found only works in debug mode.  Still, I'd try to reuse
django.utils.http.parse_http_range and
django.http.response.PartialHttpResponse if possible, so that not
all of the data is read into memory at once.


Otherwise looks okay I'd say.