Releases: yunojuno/django-geoip2-extras
Add support for Django 5.0
v4.1 - 2023-11-15
- Add Django 5.0 to build matrix
- Add Python 3.12 to build matrix
No code changes.
v4.0
v4.0 [Breaking Changes]
The library now asks for which Django cache configuration to use rather
than requiring its own entry in Django's CACHES setting. This means you
can take advantage of an existing cache and any features you have set up
with it such as connection pooling.
If you wish to continue as you were before without modifying your Django
Cache configuration, then set the new setting to:
GEOIP2_EXTRAS_CACHE_NAME = "geoip2-extras"
As you would already have the geoip2-extras
cache configuration set up
from previously using this library.
v2.0 - new structure
This release updates the request.geo_data
structure from a GeoData
object to a dict, which is in line with what the Django GeoIP2 library returns. The library should work as before, but you will need to update any calls to request.geo_data.city
to request.geo_data["city"]
, or request.geo_data.get("city")
.
In addition this version will also write the geodata to the response header. See Readme for details.
Add Django 3.2 and Python 3.9 to build matrix
v1.3 Add Django 3.2 and Python 3.9 support