django-ipgeo /

Filename Size Date modified Message
70 B
59 B
1.5 KB
0 B
640 B
56 B
875 B

django-ipgeo application

What is this?

django-ipgeo provides API to work with database from

How to use it?

  • Install via pip django-ipgeo package.

  • Add "ipgeo" to INSTALLED_APPS

  • Run syncdb

  • Run " ipgeo_update"

  • Use it like:

    from ipgeo.models import Range


    rang = Range.objects.find(request.META['REMOTE_ADDR']

    except Range.DoesNotExist:

    print 'Unknown location'


    print 'The country is', if rang.location:

    print 'The city is',