Django Model에 instance 추가
import glob import Image def updateImage() : images = [] images += glob.glob('./../*.tiff') images += glob.glob('./../*.png') for image in images : if Image.objects.filter(file=image).count() == 0 : Image(file=image).save()
2021.01.31