【Django】加载django.core.servers.basehttp.FileWrapper失败是为什么
2017-11-05 15:44
190 查看
首先说明下本人django的版本为1.10.6,引入FileWrapper发现如下报错:
这是为什么呢?
可能是因为django版本的问题,将上图引入改为:
即可。
这是为什么呢?
可能是因为django版本的问题,将上图引入改为:
from wsgiref.util import FileWrapper
即可。
相关文章推荐
- HttpPostedFile和HttpPostedFileBase你真的了解嘛?
- 通过 HTTP 加载 XML 文件时 Load 方法失败
- uri中为什么本地文件file后面跟三个斜杠, http等协议跟两个斜杠?
- 为什么是HttpContextBase而不是IHttpContext
- HttpPostedFileBase 基类
- ASP.NET MVC HttpPostedFileBase文件上传
- php file_get_contents失败[function.file-get-contents]: failed to open stream: HTTP request failed!解决
- 加载动态链接库文件.so 失败出错—— No such file or directory (没有文件或目录)问题处理
- cocod2d-x加载资源失败:get data from file(...)failed的解决办法
- BaseHttpListActivity,几行代码搞定Android Http列表请求、加载和缓存
- HTTP 筛选器 DLL C:\Windows\Microsoft.Net\Framework\v4.0.30319\aspnet_filter.dll 加载失败。数据是错误。
- 为什么在soui中加载JPG文件失败
- Twitter分享失败com.twitter.sdk.android.core.TwitterApiException: HTTP request failed, Status: 401
- The absolute uri: http://java.sun.com/jstl/core cannot be resolved in either web.xml or the jar file
- Matlab 启动时,加载失败的问题 Encountered unexpected end-of-file
- ... or one of its dependencies. The system cannot find the file specified... 加载指定dll失败
- C++ http socket 文件上传和下载 FILE写文件失败
- ASP.NET-HttpPostedFileBase file为null的问题
- uri中为什么本地文件file后面跟三个斜杠, http等协议跟两个斜杠?
- 【Unity3d】关于AssetBundle.CreateFromFile()方法加载资源失败解决方法