per page, with , order by , clip by
Results of 1 - 10 of about 24 for country (0.011 sec.)
GeoIP2によるジオロケーション — Django 6.1 ドキュメント 13110
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » GeoIP2によるジオロケーション ¶ 概要 ¶ GeoIP2 オブジェクトは、 MaxMind geoip2 Python ライブラリ [ 1 ] のラッパーです。 IP ベースのジオロケーションを実 ... 行するために、 GeoIP2 オブジェクトには、バイナリ形式の GeoIP Country および City データセットと、 geoip2 Python パッケージが必要です (CSV ファイルは使えません!)。これらは、例えば MaxMind や D ... B-IP のウェブサイトからダウンロードできます。 GeoLite2-Country.mmdb.gz および GeoLite2-City.mmdb.gz ファイルを取得し、これらを GEOIP_PATH 設定に対応するディレクトリに解凍してください。 ... めします。 カスタマイズ例 ¶ 以下はその使用例です: >>> from django.contrib.gis.geoip2 import GeoIP2 >>> g = GeoIP2 () >>> g . country ( "google.com" ) {'continent_code': 'NA', 'continent_name': 'North America', 'country_code': 'US', 'country_name': 'United ...
https://man.mtool.work/django/6.1/ref/contrib/gis/geoip2.html
GeoIP2によるジオロケーション — Django 6.1 ドキュメント 13060
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » GeoIP2によるジオロケーション ¶ 概要 ¶ GeoIP2 オブジェクトは、 MaxMind geoip2 Python ライブラリ [ 1 ] のラッパーです。 IP ベースのジオロケーションを実 ... 行するために、 GeoIP2 オブジェクトには、バイナリ形式の GeoIP Country および City データセットと、 geoip2 Python パッケージが必要です (CSV ファイルは使えません!)。これらは、例えば MaxMind や D ... B-IP のウェブサイトからダウンロードできます。 GeoLite2-Country.mmdb.gz および GeoLite2-City.mmdb.gz ファイルを取得し、これらを GEOIP_PATH 設定に対応するディレクトリに解凍してください。 ... めします。 カスタマイズ例 ¶ 以下はその使用例です: >>> from django.contrib.gis.geoip2 import GeoIP2 >>> g = GeoIP2 () >>> g . country ( "google.com" ) {'continent_code': 'NA', 'continent_name': 'North America', 'country_code': 'US', 'country_name': 'United ...
https://man.mtool.work/django/6.1/ref/contrib/gis/geoip2.html
組み込みテンプレートタグとフィルタ — Django 6.1 ドキュメント 10375
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 組み込みテンプレートタグとフィルタ ¶ このドキュメントでは、 Django の組み込みテンプレートタグとフィルタについて述べます。 また 自動ドキュメンテーショ ... ブジェクトのグループを作ります。 この複雑なタグは例を通して説明するのがいいでしょう: cities は "name" , "population" , and "country" をキーとして含むディクショナリによって表された都市のリストとします: cities = [ { "name" : "Mumbai" , "population" : "19,0 ... 00,000" , "country" : "India" }, { "name" : "Calcutta" , "population" : "15,000,000" , "country" : "India" }, { "name" : "New York" , "popula ... tion" : "20,000,000" , "country" : "USA" }, { "name" : "Chicago" , "population" : "7,000,000" , "country" : "USA" }, { "name" : "Tokyo" , "population" : " ...
https://man.mtool.work/django/6.1/ref/templates/builtins.html
組み込みテンプレートタグとフィルタ — Django 6.1 ドキュメント 10375
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 組み込みテンプレートタグとフィルタ ¶ このドキュメントでは、 Django の組み込みテンプレートタグとフィルタについて述べます。 また 自動ドキュメンテーショ ... ブジェクトのグループを作ります。 この複雑なタグは例を通して説明するのがいいでしょう: cities は "name" , "population" , and "country" をキーとして含むディクショナリによって表された都市のリストとします: cities = [ { "name" : "Mumbai" , "population" : "19,0 ... 00,000" , "country" : "India" }, { "name" : "Calcutta" , "population" : "15,000,000" , "country" : "India" }, { "name" : "New York" , "popula ... tion" : "20,000,000" , "country" : "USA" }, { "name" : "Chicago" , "population" : "7,000,000" , "country" : "USA" }, { "name" : "Tokyo" , "population" : " ...
https://man.mtool.work/django/6.1/ref/templates/builtins.html
マイグレーション・オペレーション — Django 6.1 ドキュメント 8890
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » マイグレーション・オペレーション ¶ マイグレーションファイルは一つ以上の オペレーション 、データベースに対してマイグレーションが行うべきオペレーション ... ンファイルの Migration クラスから独立した別の関数として記述し、 RunPython に渡すことを推奨します。以下に RunPython を用いて Country モデル上の初期オブジェクトを追加する例を示します: from django.db import migrations def forwards_func ( apps , schema_edito ... r ): # We get the model from the versioned app registry; # if we directly import it, it'll be the wrong version Country = apps . get_model ( "myapp" , "Country" ) db_alias = schema_editor . connection . alias Country . objects . using ( db_al ... ias ) . bulk_create ( [ Country ( name = "USA" , code = "us" ), Country ( name = "France" , code = "fr" ), ] ) def reverse_func ( apps , schema_editor ): ...
https://man.mtool.work/django/6.1/ref/migration-operations.html
マイグレーション・オペレーション — Django 6.1 ドキュメント 8890
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » マイグレーション・オペレーション ¶ マイグレーションファイルは一つ以上の オペレーション 、データベースに対してマイグレーションが行うべきオペレーション ... ンファイルの Migration クラスから独立した別の関数として記述し、 RunPython に渡すことを推奨します。以下に RunPython を用いて Country モデル上の初期オブジェクトを追加する例を示します: from django.db import migrations def forwards_func ( apps , schema_edito ... r ): # We get the model from the versioned app registry; # if we directly import it, it'll be the wrong version Country = apps . get_model ( "myapp" , "Country" ) db_alias = schema_editor . connection . alias Country . objects . using ( db_al ... ias ) . bulk_create ( [ Country ( name = "USA" , code = "us" ), Country ( name = "France" , code = "fr" ), ] ) def reverse_func ( apps , schema_editor ): ...
https://man.mtool.work/django/6.1/ref/migration-operations.html
アプリケーション — Django 6.1 ドキュメント 8006
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » アプリケーション ¶ Django には、設定の保存と調査の手段を提供するインストール済みアプリケーションのレジストリがあり、利用可能な モデル のリストもアク ... 違いは、フォームフィールドの選択肢を入力するためにデータベースクエリを作成することです: class LocationForm ( forms . Form ): country = forms . ChoiceField ( choices = [ c . name for c in Country . objects . all ()]) 上の例では、 QuerySet がイテレートされる ... ため、 Country.objects.all() からのクエリがモジュールのインポート時に実行されます。警告を回避するには、代わりに ModelChoiceField を使用し ... ます: class LocationForm ( forms . Form ): country = forms . ModelChoiceField ( queryset = Country . objects . all ()) この警告を引き起こしたコードを見つけやすくするために、 ...
https://man.mtool.work/django/6.1/ref/applications.html
アプリケーション — Django 6.1 ドキュメント 8006
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » アプリケーション ¶ Django には、設定の保存と調査の手段を提供するインストール済みアプリケーションのレジストリがあり、利用可能な モデル のリストもアク ... 違いは、フォームフィールドの選択肢を入力するためにデータベースクエリを作成することです: class LocationForm ( forms . Form ): country = forms . ChoiceField ( choices = [ c . name for c in Country . objects . all ()]) 上の例では、 QuerySet がイテレートされる ... ため、 Country.objects.all() からのクエリがモジュールのインポート時に実行されます。警告を回避するには、代わりに ModelChoiceField を使用し ... ます: class LocationForm ( forms . Form ): country = forms . ModelChoiceField ( queryset = Country . objects . all ()) この警告を引き起こしたコードを見つけやすくするために、 ...
https://man.mtool.work/django/6.1/ref/applications.html
フォーム API — Django 6.1 ドキュメント 7572
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォーム API ¶ このドキュメントについて このドキュメントでは、Django のフォーム API の詳細について説明します。このドキュメントを読む前に フォームにつ ... 標に関する追加情報にアクセスしたい時は、次のように実装します。 class GPSCoordinatesBoundField ( BoundField ): @property def country ( self ): """ Return the country the coordinates lie in or None if it can't be determined. """ value = self . value () if ... value : return get_country_from_coordinates ( value ) else : return None class GPSCoordinatesField ( Field ): bound_field_class = GPSCoordinatesBound ... Field これで、テンプレート内で {{ form.coordinates.country }} を使って国にアクセスできるようになりました。 デフォルトのフォームフィールドのテンプレートレンダリングをカスタマイズした ...
https://man.mtool.work/django/6.1/ref/forms/api.html
フォーム API — Django 6.1 ドキュメント 7572
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォーム API ¶ このドキュメントについて このドキュメントでは、Django のフォーム API の詳細について説明します。このドキュメントを読む前に フォームにつ ... 標に関する追加情報にアクセスしたい時は、次のように実装します。 class GPSCoordinatesBoundField ( BoundField ): @property def country ( self ): """ Return the country the coordinates lie in or None if it can't be determined. """ value = self . value () if ... value : return get_country_from_coordinates ( value ) else : return None class GPSCoordinatesField ( Field ): bound_field_class = GPSCoordinatesBound ... Field これで、テンプレート内で {{ form.coordinates.country }} を使って国にアクセスできるようになりました。 デフォルトのフォームフィールドのテンプレートレンダリングをカスタマイズした ...
https://man.mtool.work/django/6.1/ref/forms/api.html
PREV 1 2 3 NEXT