Skip to main content

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

For Django 2.2+ and python 3.6+. For older versions use pip install django-geoipdb-loader<1.0.

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.


Using pip:

pip install django-geoipdb-loader

Add the app to INSTALLED_APPS and configure GEOIP_PATH:


GEOIP_PATH = '/myproject/geoip'
MAXMIND_LICENSE_KEY = 'your license key'


Run download_geoipdb to download geoip files.

In order to automatically update the geoip files you can use provided celery task:

    'update-geoipdb': {
        'task': 'geoipdb_loader.tasks.update_geoipdb',
        'schedule': crontab(day_of_week=6),

or crontab:

* * * * 6 download_geoipdb

Project details

Download files

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

Files for django-geoipdb-loader, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size django_geoipdb_loader-1.0.0-py3-none-any.whl (6.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-geoipdb-loader-1.0.0.tar.gz (7.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page