from rest_framework import generics
from .models import Songs
from .serializers import SongsSerializer
from django.shortcuts import render


class ListSongsView(generics.ListAPIView):
    """
    Provides a get method handler.
    """
    queryset = Songs.objects.all()
    serializer_class = SongsSerializer


def index(request):
    return render(request, 'music/index.html')

3521f8b6d00876bca36bd148a18db7be00ab9e80
<mask token>


class ListSongsView(generics.ListAPIView):
    <mask token>
    <mask token>
    <mask token>


<mask token>

<mask token>


class ListSongsView(generics.ListAPIView):
    <mask token>
    queryset = Songs.objects.all()
    serializer_class = SongsSerializer


<mask token>

<mask token>


class ListSongsView(generics.ListAPIView):
    """
    Provides a get method handler.
    """
    queryset = Songs.objects.all()
    serializer_class = SongsSerializer


<mask token>

<mask token>


class ListSongsView(generics.ListAPIView):
    """
    Provides a get method handler.
    """
    queryset = Songs.objects.all()
    serializer_class = SongsSerializer


def index(request):
    return render(request, 'music/index.html')

from rest_framework import generics
from .models import Songs
from .serializers import SongsSerializer
from django.shortcuts import render


class ListSongsView(generics.ListAPIView):
    """
    Provides a get method handler.
    """
    queryset = Songs.objects.all()
    serializer_class = SongsSerializer


def index(request):
    return render(request, 'music/index.html')
