How to delete file uploaded to sever after processing it in Django?
What I am trying to do is that when I upload an audio file which needs to be processed it gets stored in the server, but that file is not needed anymore after user leaves the website. How should I efficiently manage this in Django? Thankyou
处理完后请删除文件?
import os
os.remove(path_to_file)
链接地址: http://www.djcxy.com/p/42438.html