drf-api-tracking
drf-api-tracking copied to clipboard
Add city and country data to logs.
see: https://github.com/aschn/drf-tracking/issues/136
created this pull request where city and country data are added to logs https://github.com/lingster/drf-api-tracking/pull/38
From Django Geolocation with GeoIP2
Instructions on how to enable location logging
In order to perform IP-based geolocation, the GeoIP2 object requires the GeoIP Country and/or City datasets in binary format (the CSV files will not work!). Grab the GeoLite2-Country.mmdb.gz and GeoLite2-City.mmdb.gz files and unzip them in a directory corresponding to the GEOIP_PATH setting.