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() >
相關文章
相關標籤/搜索