우리가 조회를 할 때, 조금 더 디테일하게 조건을 설정하는 것
(특정 record에 대한 조건을 설정한다)
filter(), exclude(), get()에 대한 키워드 인자로 지정되었다.
filter(), exclude(), get()은 QuerySet의 매서드이다.
https://docs.djangoproject.com/en/4.2/ref/models/querysets/#field-lookups
Django
The web framework for perfectionists with deadlines.
docs.djangoproject.com
'WEB > Django concept' 카테고리의 다른 글
[Django][ORM with View][Read] 전체 게시글 조회, 단일 게시글 조회 (0) | 2024.03.26 |
---|---|
[Django][ORM] ORM, QuerySet API를 사용하는 이유 (0) | 2024.03.25 |
[Django][ORM] 새로 고침 버튼 (0) | 2024.03.25 |
[Django][ORM][Delete] 데이터 삭제 (0) | 2024.03.25 |
[Django][ORM][Update] 데이터 수정 (0) | 2024.03.25 |