如何删除在Django中处理后上传到服务器的文件?

我试图做的是,当我上传需要处理的音频文件时,它会存储在服务器中,但用户离开网站后不再需要该文件。 我应该如何有效地在Django中管理这个? 谢谢


处理完后请删除文件?

import os
os.remove(path_to_file)
链接地址: http://www.djcxy.com/p/42437.html

上一篇: How to delete file uploaded to sever after processing it in Django?

下一篇: cmd command 'DEL' is not working with subprocess.Popen in python