[Django] #36988: Limitation of supported GeoIP databases is too tight

4 views
Skip to first unread message

Django

unread,
Mar 17, 2026, 6:16:14 AM (yesterday) Mar 17
to django-...@googlegroups.com
#36988: Limitation of supported GeoIP databases is too tight
----------------------+--------------------------------------
Reporter: rami | Type: Bug
Status: new | Component: GIS
Version: 6.0 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------+--------------------------------------
Starting in Django 5.1, Django ships with a [list of allowed GeoIP
database
types](https://github.com/django/django/blame/main/django/contrib/gis/geoip2.py):

{{{
SUPPORTED_DATABASE_TYPES = {
"DBIP-City-Lite",
"DBIP-Country-Lite",
"GeoIP2-City",
"GeoIP2-Country",
"GeoLite2-City",
"GeoLite2-Country",
}
}}}

It seems weird that Django seems to be enforcing where I am getting my
databases from. We've always been using the database freely available from
[here](https://github.com/geoacumen/geoacumen-country), which has the type
"Geoacumen-Country".

Is it really intended that I need to monkeypatch Django to use this GeoIP
database from a source that is not known to Django? Should this list
extensible in some official way?
--
Ticket URL: <https://code.djangoproject.com/ticket/36988>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Mar 17, 2026, 8:15:31 AM (yesterday) Mar 17
to django-...@googlegroups.com
#36988: Limitation of supported GeoIP databases is too tight
------------------------+--------------------------------------
Reporter: rami | Owner: (none)
Type: Bug | Status: new
Component: GIS | Version: 6.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------+--------------------------------------
Comment (by PhilS):

I have also just hit this, except I'm using the ''paid'' version of the
country database from DBIP which has a database type of `DBIP-Country` (no
`-Lite` suffix). I have difficulty believing the free version is supported
but the paid version is not.

For me personally, it would be ideal if a fix was back-ported to 5.2 LTS
as this feels like a regression from 4.2 LTS.
--
Ticket URL: <https://code.djangoproject.com/ticket/36988#comment:1>

Django

unread,
7:04 AM (9 hours ago) 7:04 AM
to django-...@googlegroups.com
#36988: Limitation of supported GeoIP databases is too tight
------------------------+------------------------------------
Reporter: rami | Owner: (none)
Type: Bug | Status: new
Component: GIS | Version: 6.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------+------------------------------------
Changes (by Tim Graham):

* stage: Unreviewed => Accepted

Comment:

The commit in question is 3fad712a91a8a8f6f6f904aff3d895e3b06b24c7. Feel
free to make a proposal, but unfortunately it's too late to backport a fix
to Django 5.2 since per our
[https://docs.djangoproject.com/en/dev/internals/release-process
/#supported-versions supported versions policy], it only receives security
fixes at this time.
--
Ticket URL: <https://code.djangoproject.com/ticket/36988#comment:2>

Django

unread,
8:27 AM (8 hours ago) 8:27 AM
to django-...@googlegroups.com
#36988: Limitation of supported GeoIP databases is too tight
------------------------+---------------------------------------
Reporter: rami | Owner: SnippyCodes
Type: Bug | Status: assigned
Component: GIS | Version: 6.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------+---------------------------------------
Changes (by SnippyCodes):

* owner: (none) => SnippyCodes
* status: new => assigned

--
Ticket URL: <https://code.djangoproject.com/ticket/36988#comment:3>

Django

unread,
8:27 AM (8 hours ago) 8:27 AM
to django-...@googlegroups.com
#36988: Limitation of supported GeoIP databases is too tight
------------------------+---------------------------------------
Reporter: rami | Owner: SnippyCodes
Type: Bug | Status: assigned
Component: GIS | Version: 6.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------+---------------------------------------
Changes (by SnippyCodes):

* has_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/36988#comment:4>
Reply all
Reply to author
Forward
0 new messages