DRF tracking is a utility for tracking requests for DRF API submissions, this may come in handy for you:
install: pip install drf-tracking
apply migrations: python manage.py migrate
add the following kinds of APIs:
from rest_framework import generics from rest_framework_tracking.mixins import LoggingMixin class LoggingView(LoggingMixin, generics.GenericAPIView): def get(self, request): return Response('with logging')
There is also another alternative to Django Analytics if you want to have more choices.
source share