mixin 썸네일형 리스트형 [Django] 클래스 기반의 View, Mixin, Generic View Class 기반의 View이전에 구현했던 것처럼 HTTP 메서드를 기반으로 View를 생성(GET, POST, PUT, DELETE) 할 수도 있지만, 클래스를 기반으로 View를 생성할 수도 있다. 먼저 전체 리스트를 불러오거나(GET) 데이터를 생성(POST)했던 QuestionList가 어떻게 바뀌었는지 보자. from rest_framework.response import Responsefrom rest_framework import statusfrom polls.models import Questionfrom .serializers import QuestionSerializer# APIView 사용을 위한 라이브러리 임포트from rest_framework.views import APIView#.. 더보기 이전 1 다음