In Django, if you have a ImageFile in a model, deleting will remove the associated file from disk as well as removing the record from the database.
Shouldn\'t replac
I used a simple method with popen, so when i save my Info model i delete the former file before linking to the new:
popen
Info
import os try: os.popen("rm %s" % str(info.photo.path)) except: #deal with error pass info.photo = nd['photo']