1👍
use permission classes in your views
from rest_framework.permissions import IsAuthenticated
class TestView(ListAPIView):
permission_classes = [IsAuthenticated]
Source:stackexchange.com
1👍
use permission classes in your views
from rest_framework.permissions import IsAuthenticated
class TestView(ListAPIView):
permission_classes = [IsAuthenticated]