how to delete old image when update ImageField?

Posted by eos87 on Stack Overflow See other posts from Stack Overflow or by eos87
Published on 2010-05-20T23:03:39Z Indexed on 2010/05/21 4:30 UTC
Read the original article Hit count: 201

hi using Django to create a stock photo site, i have a ImageField in my model, the problem is that when the user update the image field, the original image file isn't deleted from the hard disk.

how can I make to delete those images after an update?

Thanks!

© Stack Overflow or respective owner

Related posts about django

Related posts about django-models