print ip in profile api
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user