Answers for "how to log ip addresses in django"

1

how to log ip addresses in django

from Flask import request
print(request.remote_addr)
# request.remote_addr is the ip address of the user, you can do whatever you
# want with it, i recommend printing it before returning a value.
Posted by: Guest on March-11-2022

Code answers related to "how to log ip addresses in django"

Python Answers by Framework

Browse Popular Code Answers by Language