Django doesn't remove the "old" file after change

21 views
Skip to first unread message

Fellipe Henrique

unread,
Dec 2, 2015, 7:38:27 AM12/2/15
to Django Users
I have one ImageField in my Model, but when I change the image, django doesn't remove the old file.

How can I make these happen? when change the file, the old one need to be deleted.

I use ImageKit, so I try to override storage  method in ImageFile field, but django start to save in my disk, not in Amazon S3 (default when I use ImageKit).

So, any idea how can I fix these issue?

Regards.


T.·.F.·.A.·.     S+F
Fellipe Henrique P. Soares

e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
Twitter: @fh_bash
Reply all
Reply to author
Forward
0 new messages