Skip to main content

Django IP-API.com wrapper

Project description

About

django-ip-com is a django app for http://ip-api.com/

WARNING: This is BETA app! See LICENSE.

Usage

  • Install: pip install django-ipapi
  • Add ‘ipapi’ to INSTALLED_APPS
  • Add ‘ipapi.middleware.CheckCountryCodeMiddleware’ to MIDDLEWARE_CLASSES
  • Set IPAPI_ALLOWED_COUNTRIES = [‘your iso-country-code’,]
  • Test on localhost: http://localhost:8000/pl/?__ipapi__=208.80.152.201

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-ipapi, version 0.0.1b1
Filename, size File type Python version Upload date Hashes
Filename, size django-ipapi-0.0.1b1.tar.gz (5.2 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 Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page