print ip in profile api

This commit is contained in:
2025-10-27 12:47:20 +03:30
parent 09f375b98d
commit 7d65c0102e
2 changed files with 3 additions and 0 deletions

View File

@@ -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)

View File

@@ -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