I am trying to capture the IP address of incoming connections to the console using the development webserver that comes with django (manage.py runserver 0.0.0.0:8000
). Right now, I get the following output on requests:
[24/Feb/2022 13:03:38] "GET /admin/aqww/ HTTP/1.1" 200 3223
Is there a way to get an incoming client IP address in there? For example, make it look something like the following?
[24/Feb/2022 13:03:38 192.168.1.34] "GET /admin/aqww/ HTTP/1.1" 200 3223