This will remove imports from __future__ that are no longer needed. https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
11 lines
126 B
Python
11 lines
126 B
Python
"""
|
|
Code to get ip from request.
|
|
"""
|
|
|
|
|
|
from ipware.ip import get_ip
|
|
|
|
|
|
def real_ip(group, request):
|
|
return get_ip(request)
|