Saturday, February 22, 2014

Remove old image file of ImageField

Hi, I've my django model with an ImageField.
When I update (upload) a new image with the ImageField, the older image file remains in Media Folder.

How can I remove the old files when I update ImageField??

What is the best, clear, and simple approach to solve this problem?
I've read a lot, but I've not found one real solution. 

Thanks! ... and sorry for my english! :)

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ef4ca37f-9fc4-4cd3-bc98-0db58d922393%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment