Django union
2021. 3. 27. 13:27ㆍ파이썬/Django
unionedImages = Trained_Image.objects.all().values_list('prefix').union(Image.objects.all().values_list('prefix'))
for unionedImage in unionedImages :
print(unionedImage)
결과
('./aaa/aa/96',)
('./bbb/bb/97',)
'파이썬 > Django' 카테고리의 다른 글
Django admin change_list.html 구조 (0) | 2021.03.27 |
---|---|
Invalid HTTP_HOST header: '192.168.0.3'. You may need to add '192.168.0.10' to ALLOWED_HOSTS. (0) | 2021.03.27 |
Django filter 정규식 (0) | 2021.03.27 |
Django filter Max 구하기 (0) | 2021.03.27 |
Django get_or_create (0) | 2021.03.11 |