Reboot of the project, emerging from #7, that uses django.core.cache instead of session storage. There's no reason to store the geodata in the session, when the IP address may be shared amongst users.
In addition, I have removed the custom GeoData class, and just used the django.contrib.gis.geoip2 dict instead - it's not as user friendly, but it is simple.
Reboot of the project, emerging from #7, that uses
django.core.cache
instead ofsession
storage. There's no reason to store the geodata in the session, when the IP address may be shared amongst users.In addition, I have removed the custom
GeoData
class, and just used thedjango.contrib.gis.geoip2
dict instead - it's not as user friendly, but it is simple.