akolpakov / django-unused-media

Remove unused media files from Django project
MIT License
124 stars 24 forks source link

Conflicts with constance settings #43

Closed dtcooper closed 3 years ago

dtcooper commented 3 years ago

Just noticed if I used a file setting in constance, django-unused-media will delete it. The process to use a file setting is described here.

Wondering if there's a workaround, or worth patching? (I'm happy to write the patch if you'd be willing to accept it!)

Cheers,

David

dtcooper commented 3 years ago

Workaround found: wrap call_command (from django.core.management) with a programmatically generated excludes= kwarg. 😄