diff --git a/apps/authentication/api/v1/api.py b/apps/authentication/api/v1/api.py index ba0deae..ed2ddc1 100644 --- a/apps/authentication/api/v1/api.py +++ b/apps/authentication/api/v1/api.py @@ -161,6 +161,7 @@ class UserViewSet(SoftDeleteMixin, ModelViewSet): authorize_view.UserRelations.objects.get(user=request.user) ) print(request.META.get('HTTP_X_FORWARDED_FOR')) + print(request.META.get('REMOTE_ADDR')) return Response(serializer.data, status.HTTP_200_OK) diff --git a/logs/django_requests.log b/logs/django_requests.log index c4c6a7f..40bd99b 100644 --- a/logs/django_requests.log +++ b/logs/django_requests.log @@ -8,3 +8,4 @@ [2025-10-27 12:42:00,748] INFO django.server | IP: - | Path: - | "GET /auth/api/v1/user-relations/?role= HTTP/1.1" 200 4494 [2025-10-27 12:47:00,940] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\authentication\api\v1\api.py changed, reloading. [2025-10-27 12:47:03,704] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-10-27 12:51:33,606] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\authentication\api\v1\api.py changed, reloading.