django-ipgeo icondjango-ipgeo 0.0.2

API to ipgeobase.ru database
django-ipgeo is a Django app that provides an API to work with database from ipgeobase.ru.

How to use it?


* Install via pip django-ipgeo package.
* Add "ipgeo" to INSTALLED_APPS
* Run syncdb
* Run "manage.py ipgeo_update"
* Use it like:

    from ipgeo.models import Range

    try:
        rang = Range.objects.find(request.META['REMOTE_ADDR']
    except Range.DoesNotExist:
        print 'Unknown location'
    else:
        print 'The country is', rang.country
        if rang.location:
            print 'The city is', rang.location.name

last updated on:
August 26th, 2011, 22:38 GMT
price:
FREE!
developed by:
Grigoriy Petukhov
license type:
BSD License 
category:
ROOT \ Internet \ HTTP (WWW)

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Add your review!

SUBMIT