pixelpassion / django-saas-boilerplate

A Django + django-rest-framework + Heroku + SaaS application boilerplate
MIT License
51 stars 10 forks source link

Geolocation #51

Closed jensneuhaus closed 4 years ago

jensneuhaus commented 4 years ago

☝️What is it? Why do we need it?

💭 Implementation details

📋 Todos

Make sure we can use db-ip to get the location for an IP

curl http://api.db-ip.com/v2/free/91.64.138.22
{
        "ipAddress": "91.64.138.22",
    "continentCode": "EU",
    "continentName": "Europe",
    "countryCode": "DE",
    "countryName": "Germany",
    "stateProv": "Hessen",
    "city": "Frankfurt am Main",
}

Send an email when the User registers from a new Device