I'm trying to setup geoip in Django to identify the source of a connection (to tailor content for different countries) but running into a problem.
First I execute:
from django.contrib.gis import geoip
geo = geoip.GeoIP('path to maxmind db')
Then geo.country('www.google.com')
returns the US as you'd expect. Other popular websites also work fine.
However when I try it on my own client IP I get an empty record.
For example: geo.country('127.6.89.129')
returns {'country_name': None, 'country': None}
What am I missing here? Does the maxmind database only cover popular sites so can't be used if I want to identify the source of the connection?
I'm also using the browser locale settings to identify language but unfortunately I need geo-location to tailor some of the content independently of language.