The core of realizing background functions
DRF: View based on class ------CBV
# stay views.py in
from rest_framework.viewsets import ModelViewSet
from .models import Library name
from .serializs import Library name Serializer
class StudentViewset(ModelViewSet):
queryset = Library name .objects.all()
serializer_class = Library name Serializer