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 GeoIP
Django versions 1.11+ are supported.
Why and when to use?
If you don’t mind installing and configuring official geoipupdate on your server then I’d recommend to use it. If you want a simple method to download db files via django command or schedule updates using celery then this app is the way to go.
Installation
Using pip:
pip install django-geoipdb-loader
Add the app to INSTALLED_APPS and configure GEOIP_PATH:
INSTALLED_APPS = [ ... geoipdb_loader, ... ] GEOIP_PATH = '/myproject/geoip'
Usage
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=6), }, }
or crontab:
* * * * 6 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
Built Distribution
Hashes for django-geoipdb-loader-0.9.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 413d34b7ee6f45052536ef3dd1514b3ee93baa7bbb59fdb21d19d94ea317c030 |
|
MD5 | 208eb78146c4c816a1cf2623e3de75a5 |
|
BLAKE2b-256 | c741385ff99f5bab67c07ea1c21567b2afa3c1830a1efdbbaf08ebaa98fd26b9 |
Hashes for django_geoipdb_loader-0.9.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a00f7fa5d07671f5fb753eedac27c6fd3973c2e5ab8dc4718f0f47c6cce06b76 |
|
MD5 | 479a22e7066ae607ba045811ab1dffbb |
|
BLAKE2b-256 | a5bb7cab85961bf612b5a9e686063bca8128eb849f396290af2b8e111e94e8f1 |