added ip and geoip functionality to email_manager action

This commit is contained in:
Sam
2021-02-10 11:55:03 +00:00
parent dad8c00b84
commit fa237142ad
7 changed files with 53 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ This README aims to document functionality of backend as well as required steps
- [Location Data](#location-data)
- [Endpoints](#endpoints)
- [Data Load](#data-load)
- [GeoIP Setup](#geoip-setup)
- [Development Utils](#development-utils)
## First Steps
@@ -177,6 +178,18 @@ CSV headers: `id,nombre-producto,descripcion,imagen,url,precio,gastos-envio,cond
Only admin users have access to endoint
## GeoIP Setup
Module: `geoip2`
- Download the `GeoLite2 City` and `GeoLite2 Country` binary datasets from maxmind.com
- Unzip files into `datasets/` folder
- Set `settings.GEOIP_PATH` to datasets folder
Optional: install `libmaxminddb` C library for improved performance
## Development Utils
### Fake product load