<filename>api_server_django/api_server_django/core/views.py
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import permissions  # <-- Here

class HelloView(APIView):
    permission_classes = (permissions.IsAuthenticated,)             # <-- And here

    def get(self, request):
        content = {'message': 'Hello, World!'}
        return Response(content)


<filename>api_server_django/api_server_django/core/views.py
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import permissions  # <-- Here

class HelloView(APIView):
    permission_classes = (permissions.IsAuthenticated,)             # <-- And here

    def get(self, request):
        content = {'message': 'Hello, World!'}
        return Response(content)


# <-- Here # <-- And here