Adding auth to existing API

Hello,

I followed an online course to get a simple API up and running with Django and django-rest-framework.

But, after searching for how to add users and authentication, I couldn’t find how to protect routes (with ModelViewSet) and add the login/signup routes.

I have a class that generates the messages:

class MessageView(viewsets.ModelViewSet):
   queryset = Message.objects.all()
   serializer_class = MessageSerializer

I think I may have to change this and use ApiView (?) and create functions for each route (?) but I am not sure. I can’t find any beginner-friendly docs on using Django and/or django-rest-framework and adding user signup/auth - the official docs are too difficult to follow for me right now.

Thanks!