Using Signal in Django to Delete Old Image
Using signal to delete old profile picture when sending update request.
What is Signal in Django.
Signals help decoupled applications get notified when actions occur elsewhere in the framework.
Signals are signals or notifications that are fired at d...
sammycodespy.hashnode.dev4 min read
Dmytro Litvinov
Python developer from Ukraine πΊπ¦
Hi there,
Found out that article in Hashnode weekly newsletter :)
Btw, there is a package called django-cleanup which automatically deletes files for FileField, ImageField and subclasses.