print ip in profile api
This commit is contained in:
@@ -160,6 +160,7 @@ class UserViewSet(SoftDeleteMixin, ModelViewSet):
|
|||||||
serializer = authorize_view.UserRelationSerializer(
|
serializer = authorize_view.UserRelationSerializer(
|
||||||
authorize_view.UserRelations.objects.get(user=request.user)
|
authorize_view.UserRelations.objects.get(user=request.user)
|
||||||
)
|
)
|
||||||
|
print(request.META.get('HTTP_X_FORWARDED_FOR'))
|
||||||
return Response(serializer.data, status.HTTP_200_OK)
|
return Response(serializer.data, status.HTTP_200_OK)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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: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: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: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
|
||||||
|
|||||||
Reference in New Issue
Block a user