1👍
✅
Assuming you have django model VotableImage
, you can get list of one of it’s fields by calling db_path_list = VotableImage.objects.values_list('Path', flat=True)
and then check each value for presence in files
list (that you created by script)
Source:stackexchange.com