Django runserver - 无法提供视频文件 [英] Django runserver - can't serve video files

查看:132
本文介绍了Django runserver - 无法提供视频文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用runserver命令在本地模式下运行Django时,视频文件未正确加载到浏览器中。我收到错误

When running Django in local mode using the runserver command video files are not loaded in the browser properly. I get the error


尝试加载资源时出错。

An error occurred trying to load the resource.

所有其他静态文件都可以正常运行,如图像,javascript和css。

All other static files serve fine such as images, javascript and css.

推荐答案

我最终找到答案,Django的runserver不支持字节范围请求。看到这个主题:

I have found the answer finally, Django's runserver does not support byte range requests. See this thread:

https://groups.google.com/forum/#!msg/django-developers/NZ1qTkZ6vok/fhdz7rTtL1EJ

此门票:

https://code.djangoproject.com/票/ 22479

这篇关于Django runserver - 无法提供视频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆