[Fixed]-Python/django – compare list with database rows

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)

Leave a comment