Is the Django community interested in supporting HTTP range requests in 
django.views.static.serve<https://github.com/django/django/blob/master/django/views/static.py>
?

The primary benefit I see is that it makes files served up for <video> and 
<audio> "seek-able" with the django server. This generally isn't a problem 
for small files (except in 
Chrome<http://stackoverflow.com/questions/8088364/html5-video-will-not-loop>), 
but becomes an issue for larger ones.

Werkzeug has a function that parses the range 
header<https://github.com/mitsuhiko/werkzeug/blob/5eed9385b861a1ae53c03eaae5a8dea4480113d6/werkzeug/http.py#L494>,
 
which I used to support range requests in a Django application. I estimate 
that robust support for HTTP range requests would cost <300 lines of code, 
plus tests.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/37cdec22-e19d-4843-a3e4-a6b1e1bfa86e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to