Skip to content

Releases: yunojuno/django-geoip2-extras

Add support for Django 5.0

15 Nov 10:46
ce17c0d
Compare
Choose a tag to compare

v4.1 - 2023-11-15

  • Add Django 5.0 to build matrix
  • Add Python 3.12 to build matrix

No code changes.

v4.0

15 Nov 10:48
6fe5e3f
Compare
Choose a tag to compare

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

30 Aug 09:08
274f5ff
Compare
Choose a tag to compare

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

29 Aug 13:02
9da34f1
Compare
Choose a tag to compare
v1.3

Add Django 3.2 and Python 3.9 support