Ejemplo n.º 1
0
def user_country(context):
    ip = get_ip(context['request'])
    return get_country(ip)
Ejemplo n.º 2
0
 def country(self):
     """
     Returns country name using Telize or GeoIP
     """
     return get_country(self.ip)
Ejemplo n.º 3
0
 def country(self):
     """
     Returns country name using Telize or GeoIP
     """
     return get_country(self.ip)