Helps download and keep updated maxmind's geoip db required for django GeoIP
Project description
Helps download and keep updated maxmind’s geoip db required for django GeoIP2 (django 1.9+)
Why and when to use?
If you don’t mind installing and configuring official geoipupdate binary on your server then I’d recommend to use it http://dev.maxmind.com/geoip/geoipupdate/ This app was designed for quick and easy setup of geoipdb via django settings.
Installation
Using pip:
pip install django-geoipdb-loader
Add the app to INSTALLED_APPS in settings file and configure GEOIP_PATH:
INSTALLED_APPS = [ ... geoipdb_loader, ... ] GEOIP_PATH = '/myproject/geoip'
Run manage.py download_geoipdb to download geoip files
In order to automatically update the geoip files you can use provided celery task:
CELERYBEAT_SCHEDULE = { 'update-geoipdb': { 'task': 'geoipdb_loader.tasks.update_geoipdb', 'schedule': crontab(day_of_week=7), }, }
or crontab:
* * * * 7 manage.py download_geoipdb
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django-geoipdb-loader-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d36018118cab0276dcdb8992447d06f97772d32a0f2ac44e4e15cc9a57d166d9 |
|
MD5 | 5f5ebc9d7bb9a29e84561742e03e26b1 |
|
BLAKE2b-256 | aa84aa997f5315af9177f0b9536ffa1be036978e2a2cdca014c15b340d97d686 |