Q: DRF Q기능을 통해서 쿼리하는 것은 어떤 장점이 있습니까?
A:
What’s the benefit of using a Q object?
Using Q objects we can make complex queries with less and simple code.
https://micropyramid.com/blog/querying-with-django-q-objects
https://velog.io/@stresszero/Django-Q-%EA%B0%9D%EC%B2%B4-%EC%A0%95%EB%A6%AC
https://forum.djangoproject.com/t/whare-are-the-benefits-of-using-q-objects/7160
https://velog.io/@jxxwon/Django-Q-%EA%B0%9D%EC%B2%B4
Q: Serializer에서 어떻게 객체를 validate하게 됩니까?
A:
https://blog.devjunction.in/how-to-perform-data-validation-in-django-rest-framework
https://www.django-rest-framework.org/api-guide/serializers/
https://seoyoung2.github.io/django/2020/08/16/Serializer.html
https://www.django-rest-framework.org/api-guide/validators/#validation-in-rest-framework
'TIL' 카테고리의 다른 글
TIL 080423 (0) | 2023.08.04 |
---|---|
TIL 080323 (0) | 2023.08.03 |
TIL 080123 (0) | 2023.08.01 |
TIL 073123 (0) | 2023.07.31 |
TIL 072823 (0) | 2023.07.28 |