drf-api-tracking icon indicating copy to clipboard operation
drf-api-tracking copied to clipboard

Add city and country data to logs.

Open lingster opened this issue 5 years ago • 2 comments

see: https://github.com/aschn/drf-tracking/issues/136

lingster avatar Mar 10 '20 22:03 lingster

created this pull request where city and country data are added to logs https://github.com/lingster/drf-api-tracking/pull/38

anatolzak avatar Nov 24 '20 20:11 anatolzak

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.

anatolzak avatar Nov 25 '20 11:11 anatolzak