In line with prior examples by others, take a look at this complete example leveraging GeoIP2
Get Visitor Location using GeoIP2 in Django https://medium.com/@arrosid/get-visitor-location-using-geoip2-in-django-32ad3d417115 Geolocation with GeoIP2 https://docs.djangoproject.com/en/4.0/ref/contrib/gis/geoip2/ django-ip-geolocation 1.6.1 https://pypi.org/project/django-ip-geolocation/ On Thursday, December 23, 2021 at 7:25:06 AM UTC-7 [email protected] wrote: > From ipinfo.io > > في الخميس، ١٦ ديسمبر ٢٠٢١ ٤:٠٩ ص Amor Zamora <[email protected]> كتب: > >> Can you help me? >> I need to obtain the country of where the users access from the IP and >> insert that information into the sqlite3 database. >> >> Little description. >> I have an application that I have to do the statistics and insert into >> the sqlite3 database, the IP information, the country from which it is >> accessed, who generates the information and how many times has clicked on >> the application. >> Question 1 is that I cannot find any suitable module in DJango that >> allows me to combine the information described above. >> I am using. IP_address, os, daemonize and socket and I don't quite >> realize how to get the country from where it is accessed. >> Thanks >> >> -- >> Amor Zamora >> Behind the distance, >> your mouth and mine hide, >> complices of a kiss, caresses, fantasies, >> distance as close as the sky and the sea, >> my piece is in your bed, in mine, is your love. >> Behind the distance hide love, memories, >> encounters, experiences, circumstances, pain and good times, >> it is after her, the distant ones, >> that we leave feelings, >> but if we really miss, >> distance, >> it is only your time. >> >> -- >> > You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/CAKMTbHXbM4QFh5kRiShsroObKjefGzvRchX5m3S2ps6M95bwgQ%40mail.gmail.com >> >> <https://groups.google.com/d/msgid/django-users/CAKMTbHXbM4QFh5kRiShsroObKjefGzvRchX5m3S2ps6M95bwgQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e56de8d2-ede0-4b31-8063-8b44ceccba24n%40googlegroups.com.

