Django单元测试之文件上传测试

Submitting files is a special case. To POST a file, you need only provide the file field name as a key, and a file handle to the file you wish to upload as a value. For example:html >>> c = Client() >
相关文章
相关标签/搜索