1. Hadi Moshayedi
  2. django-tracking

Commits

Hadi Moshayedi  committed 630b0dd

fixed ip_country

  • Participants
  • Parent commits 29ef5aa
  • Branches default

Comments (0)

Files changed (1)

File tracking/utils.py

View file
         return result
     gip = pygeoip.GeoIP(settings.GEOIP_PATH)
     try:
-        country = gip.country_code_by_addr(ip_address)
+        country = gip.country_code_by_addr(address)
     except:
         country = 'US'
     r_server.set(key, country)