1
0
mirror of https://github.com/django/django.git synced 2025-07-06 02:39:12 +00:00

3 Commits

Author SHA1 Message Date
Nick Pope
51eb666758 [5.1.x] Fixed #35841 -- Restored support for DB-IP databases in GeoIP2.
Thanks Felix Farquharson for the report and Claude Paroz for the
review.

Regression in 40b5b1596f7505416bd30d5d7582b5a9004ea7d5.

Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>

Backport of 3fad712a91a8a8f6f6f904aff3d895e3b06b24c7 from main.
2024-10-17 21:42:06 -03:00
Nick Pope
d1b63c26cc [5.1.x] Refs #35841 -- Updated GeoIP2 test database files.
The mmdb files were taken from
679e37e18a.

Backport of c37f249ffa4b735d1492cda11981dedb947ee437 from main.
2024-10-17 21:41:52 -03:00
Nick Pope
a93375e8ab Fixed #34305 -- Changed GeoIP2 tests to use MaxMind test databases.
GEOIP_SETTINGS is removed from the global scope as this prevents
modifications to the settings using @override_settings in tests.

Additional improvements now that we have stable test databases include:

- Made testing more comprehensive and improved coverage
- Patched socket.gethostbyname() for whole test case
- Added testing of non-free GeoIP2 databases

Co-authored-by: Tom Forbes <tom@tomforb.es>
2023-12-12 09:58:26 +01:00