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.

Source Distribution

django-geoip-redis-1.0.1.tar.gz (8.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page