SyntaxFix
Write A Post
Hire A Developer
Questions
If You are using Gunicorn and Nginx environment then the following code template works for you.
addr_ip4 = request.remote_addr