... 、 geoip2 Python パッケージが必要です (CSV ファイルは使えません!)。これらは、例えば MaxMind や DB-IP のウェブサイトからダウンロード ... できます。 GeoLite2-Country.mmdb.gz および GeoLite2-City.mmdb.gz ファイルを取得し、これらを GEOIP_PATH 設定に対応するディレクトリに解凍してください。 また、 geoip2 が C ライブラリの高速な処理速度を活用できるようにするため ... minddb C library をインストールすることをおすすめします。 カスタマイズ例 以下はその使用例です: >>> from django.contrib.gis.geoip2 import GeoIP2 >>> g = GeoIP2 () >>> g . country ( "google.com" ) {'continent_code': 'NA', 'continent_name': 'North Americ ... ... 9.x, 8.x, 7.x, 6.x GDAL Geospatial Data Abstraction Library Yes 3.13, 3.12, 3.11, 3.10, 3.9, 3.8, 3.7, 3.6, 3.5, 3.4, 3.3 GeoIP IPベースのジオロケーション ライブラリ No 2 PostGIS PostgreSQL の空間拡張機能 Yes (PostgreSQL のみ) 3.6, 3.5, 3.4, 3.3, 3.2 ... 全く問題なく動くかもしれません。あなたの感覚によって異なるかもしれません。 注釈 The GeoDjango interfaces to GEOS, GDAL, and GeoIP may be used independently of Django. In other words, no database or settings file required -- import them as normal from d ... ... ngo.utils.itercompat.is_iterable() function and the django.utils.itercompat module will be removed. The django.contrib.gis.geoip2.GeoIP2.coords() method will be removed. The django.contrib.gis.geoip2.GeoIP2.open() method will be removed. Support for p ... ipIfCustomUser() decorator will be removed. The GeoManager and GeoQuerySet classes will be removed. The django.contrib.gis.geoip module will be removed. The supports_recursion check for template loaders will be removed from: django.template.engine.Eng ... utils.text.truncate_html_words() will be removed in favor of the django.utils.text.Truncator class. The django.contrib.gis.geoip.GeoIP class was moved to django.contrib.gis.geoip in 1.4 -- the shortcut in django.contrib.gis.utils will be removed. djan ... ... ss which is a subclass of TransactionTestCase rather than TestCase . Other bugfixes and changes Content retrieved from the GeoIP library is now properly decoded from its default iso-8859-1 encoding ( #21996 ). Fixed AttributeError when using bulk_crea ... ... sform() method allows transforming a raster into a different spatial reference system by specifying a target srid . 新しい GeoIP2 クラスが、IPv6 アドレスをサポートする MaxMind の GeoLite2 データベースを扱えるようになりました。 ウィジェットに含まれるデ ... will require the caller to set current_app on the request instead of passing it in a separate argument. django.contrib.gis.geoip The django.contrib.gis.geoip2 module supersedes django.contrib.gis.geoip . The new module provides a similar API except th ... at it doesn't provide the legacy GeoIP-Python API compatibility methods. その他 The weak argument to django.dispatch.signals.Signal.disconnect() has been depreca ... ... chunks() (File のメソッド) (UploadedFile のメソッド) CITextExtension (django.contrib.postgres.operations のクラス) city() (GeoIP2 のメソッド) classes (InlineModelAdmin の属性) classproperty (django.utils.functional のクラス) clean() (Field のメソッド) ... Count (django.db.models のクラス) count (Paginator の属性) count() (django.db.models.query.QuerySet モジュール) country() (GeoIP2 のメソッド) country_code() (GeoIP2 のメソッド) country_name() (GeoIP2 のメソッド) coupling loose CovarPop (django.contrib ... django.contrib.gis.forms module django.contrib.gis.forms.widgets module django.contrib.gis.gdal module django.contrib.gis.geoip2 module django.contrib.gis.geos module django.contrib.gis.measure module django.contrib.gis.serializers.geojson module dja ... ... ing boxes. Added the GeometryDistance function, supported on PostGIS. Added support for the furlong unit in Distance . The GEOIP_PATH setting now supports pathlib.Path . The GeoIP2 class now accepts pathlib.Path path . django.contrib.postgres The new ... ... ests.utils.skipIfCustomUser() が削除されました。 GeoManager および GeoQuerySet クラスが削除されました。 django.contrib.gis.geoip モジュールが削除されました。 以下のテンプレートローダーから supports_recursion チェックが削除されました。 django.template. ... 2026年10月08日