kredensial tidak disediakan ketika saya mencoba mendaftar pengguna baru Django

To open up the API on non-authenticated users, you need to give it an empty list on authentication_classes:

from rest_framework.decorators import api_view, authentication_classes, permission_classes


@api_view(['GET'])
@authentication_classes([]) # Add this
@permission_classes([]) # Maybe add this too
def getProducts(request):
  ...
MitchAloha