Skip to main content

Django GeoIP. Based on default DB or Redis.

Project description

Demo installation:

$ mkvirtualenv django-geoip-redis
$ git clone https://github.com/gotlium/django-geoip-redis.git
$ cd django-geoip-redis
$ python setup.py develop
$ cd demo
$ pip install -r requirements.txt
$ python manage.py syncdb
$ python manage.py migrate
$ python manage.py loaddata ../fixtures/db.json
$ python manage.py runserver
$ python manage.py sync_with_redis
$ python manage.py shell
>>> from geoip import record_by_addr
>>> print ','.join(record_by_addr('91.195.136.52'))

If you want use native db for local development, you can add GEO_BACKEND = 'db' into your local_settings.py

Bitdeli badge

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-geoip-redis-1.0.1.tar.gz (8.3 kB) Copy SHA256 hash SHA256 Source None Nov 9, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page