diff --git a/apps/authentication/api/v1/api.py b/apps/authentication/api/v1/api.py index b9fbd3e..ba0deae 100644 --- a/apps/authentication/api/v1/api.py +++ b/apps/authentication/api/v1/api.py @@ -160,6 +160,7 @@ class UserViewSet(SoftDeleteMixin, ModelViewSet): serializer = authorize_view.UserRelationSerializer( authorize_view.UserRelations.objects.get(user=request.user) ) + print(request.META.get('HTTP_X_FORWARDED_FOR')) return Response(serializer.data, status.HTTP_200_OK) diff --git a/logs/django_requests.log b/logs/django_requests.log index 2e6a79c..c4c6a7f 100644 --- a/logs/django_requests.log +++ b/logs/django_requests.log @@ -6,3 +6,5 @@ [2025-10-27 12:41:46,943] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader [2025-10-27 12:41:54,499] INFO django.server | IP: - | Path: - | "GET /auth/api/v1/user-relations/?role= HTTP/1.1" 200 4494 [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