build my life

[DRF] View 관련 자료 - 공부법 본문

Django

[DRF] View 관련 자료 - 공부법

dalovee 2023. 7. 17. 23:39
728x90

 

1. ModelViewSet 부터 공부할 것

2. mixins를 모아서 generics를 만들고 generics를 모아 viewset을 만듦
- 예시) GenericAPIView + CreateModelMixin = CreateAPIView

제일 아래가 최상위 상속 클래스

 


https://www.django-rest-framework.org/api-guide/viewsets/

 

Viewsets - Django REST framework

viewsets.py After routing has determined which controller to use for a request, your controller is responsible for making sense of the request and producing the appropriate output. — Ruby on Rails Documentation Django REST framework allows you to combine

www.django-rest-framework.org

https://www.cdrf.co/

 

Django REST Framework 3.14 -- Classy DRF

What is this? Django REST framework is a powerful and flexible toolkit that makes it easy to build Web APIs. It provides class based generic API views and serializers. We've taken all the attributes and methods that every view/serializer defines or inherit

www.cdrf.co

https://ccbv.co.uk/

 

Django Class-Based-View Inspector -- Classy CBV

What are class-based views anyway? Django's class-based generic views provide abstract classes implementing common web development tasks. These are very powerful, and heavily-utilise Python's object orientation and multiple inheritance in order to be exten

ccbv.co.uk

 

728x90

'Django' 카테고리의 다른 글

[DRF] 직렬화란?  (0) 2023.07.21
[DRF] Serializer : dict-like  (0) 2023.07.21
[DRF] Router  (0) 2023.07.17
[DRF] 인증 기능 오버뷰  (0) 2023.07.17
[Django] 기본 내장 DB 생성 - SQLite  (0) 2023.04.18