per page, with , order by , clip by
Results of 1 - 10 of about 54 for verbose (0.007 sec.)
モデルの Meta オプション — Django 6.1 ドキュメント 11659
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » モデルの Meta オプション ¶ このドキュメントでは、モデル内部の class Meta 内でモデルに与えられる、すべての可能な メタデータオプション を説明します。 ... class Meta : constraints = [ models . CheckConstraint ( condition = models . Q ( age__gte = 18 ), name = "age_gte_18" ), ] verbose_name ¶ Options. verbose_name ¶ 人間が読めるオブジェクトの名前(単数形): verbose_name = "pizza" 指定されない場合、 Django ... はクラス名を小文字にして使います。 CamelCase は camel case になります。 verbose_name_plural ¶ Options. verbose_name_plural ¶ オブジェクトの名前の複数形: verbose_name_plural = "stories" 指定されない場合、 ... Django は verbose_name + "s" を使用します。 読み取り専用の Meta 属性 ¶ label ¶ Options. label ¶ オブジェクトの表現。 app_label.object_name を ...
https://man.mtool.work/django/6.1/ref/models/options.html
モデルの Meta オプション — Django 6.1 ドキュメント 11659
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » モデルの Meta オプション ¶ このドキュメントでは、モデル内部の class Meta 内でモデルに与えられる、すべての可能な メタデータオプション を説明します。 ... class Meta : constraints = [ models . CheckConstraint ( condition = models . Q ( age__gte = 18 ), name = "age_gte_18" ), ] verbose_name ¶ Options. verbose_name ¶ 人間が読めるオブジェクトの名前(単数形): verbose_name = "pizza" 指定されない場合、 Django ... はクラス名を小文字にして使います。 CamelCase は camel case になります。 verbose_name_plural ¶ Options. verbose_name_plural ¶ オブジェクトの名前の複数形: verbose_name_plural = "stories" 指定されない場合、 ... Django は verbose_name + "s" を使用します。 読み取り専用の Meta 属性 ¶ label ¶ Options. label ¶ オブジェクトの表現。 app_label.object_name を ...
https://man.mtool.work/django/6.1/ref/models/options.html
翻訳 — Django 6.1 ドキュメント 10843
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 翻訳 ¶ 概要 ¶ Django プロジェクトを翻訳可能にするためには、Python コードやテンプレートに、多少のフックを加筆しなければなりません。このフックは 翻訳文 ... mport ngettext from myapp.models import Report count = Report . objects . count () if count == 1 : name = Report . _meta . verbose_name else : name = Report . _meta . verbose_name_plural text = ngettext ( "There is %(count)d %(name)s available." , "Ther ... vailable." , "There are %(count)d %(name)s objects available." , count , ) % { "count" : count , "name" : Report . _meta . verbose_name , } 注釈 ngettext() を使うときは、リテラルで挿入される全ての変数に対して単一の名前を使うようにしてください。以下の例で ... are %(count)d %(plural_name)s available." , count , ) % { "count" : Report . objects . count (), "name" : Report . _meta . verbose_name , "plural_name" : Report . _meta . verbose_name_plural , } django-admin compilemessages を実行すると、以下のエラーが発 ...
https://man.mtool.work/django/6.1/topics/i18n/translation.html
翻訳 — Django 6.1 ドキュメント 10635
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 翻訳 ¶ 概要 ¶ Django プロジェクトを翻訳可能にするためには、Python コードやテンプレートに、多少のフックを加筆しなければなりません。このフックは 翻訳文 ... mport ngettext from myapp.models import Report count = Report . objects . count () if count == 1 : name = Report . _meta . verbose_name else : name = Report . _meta . verbose_name_plural text = ngettext ( "There is %(count)d %(name)s available." , "Ther ... vailable." , "There are %(count)d %(name)s objects available." , count , ) % { "count" : count , "name" : Report . _meta . verbose_name , } 注釈 ngettext() を使うときは、リテラルで挿入される全ての変数に対して単一の名前を使うようにしてください。以下の例で ... are %(count)d %(plural_name)s available." , count , ) % { "count" : Report . objects . count (), "name" : Report . _meta . verbose_name , "plural_name" : Report . _meta . verbose_name_plural , } django-admin compilemessages を実行すると、以下のエラーが発 ...
https://man.mtool.work/django/6.1/topics/i18n/translation.html
モデル — Django 6.1 ドキュメント 10027
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » モデル ¶ モデルは、データに関する唯一かつ決定的な情報源です。あなたが保持するデータが必要とするフィールドとその動作を定義します。一般的に、各モデルは ... 、 primary_key=True が必ず 1 つだけ (明示的に宣言されるか、自動的に追加されるかのどちらかで) 存在する必要があります。 詳細 (verbose) なフィールド名 ¶ ForeignKey 、 ManyToManyField 、 OneToOneField を除くすべてのフィールド型は、任意の第 1 引数として "詳細 ... な名前 (verbose name)" を取ります。詳細な名前を指定しない場合、Django はフィールドの属性名のアンダースコアをスペースに変換したものを使って ... eld ( max_length = 30 ) ForeignKey 、 ManyToManyField 、 OneToOneField の 3 つは最初の引数にモデルクラスを必要とするので、 verbose_name キーワード引数を使用してください: poll = models . ForeignKey ( Poll , on_delete = models . CASCADE , verbose_name = " ...
https://man.mtool.work/django/6.1/topics/db/models.html
モデル — Django 6.1 ドキュメント 9627
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » モデル ¶ モデルは、データに関する唯一かつ決定的な情報源です。あなたが保持するデータが必要とするフィールドとその動作を定義します。一般的に、各モデルは ... 、 primary_key=True が必ず 1 つだけ (明示的に宣言されるか、自動的に追加されるかのどちらかで) 存在する必要があります。 詳細 (verbose) なフィールド名 ¶ ForeignKey 、 ManyToManyField 、 OneToOneField を除くすべてのフィールド型は、任意の第 1 引数として "詳細 ... な名前 (verbose name)" を取ります。詳細な名前を指定しない場合、Django はフィールドの属性名のアンダースコアをスペースに変換したものを使って ... eld ( max_length = 30 ) ForeignKey 、 ManyToManyField 、 OneToOneField の 3 つは最初の引数にモデルクラスを必要とするので、 verbose_name キーワード引数を使用してください: poll = models . ForeignKey ( Poll , on_delete = models . CASCADE , verbose_name = " ...
https://man.mtool.work/django/6.1/topics/db/models.html
LayerMapping データインポートユーティリティ — Django 6.1 ドキュメント 9018
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » LayerMapping データインポートユーティリティ ¶ LayerMapping クラスは、ベクトル空間データファイル (例: shapefile) の内容を GeoDjango モデルにマッピング ... GC name. ... } # The mapping is a dictionary >>> lm = LayerMapping ( TestGeo , "test_poly.shp" , mapping ) >>> lm . save ( verbose = True ) # Save the layermap, imports the data. Saved: Name: 1 Saved: Name: 2 Saved: Name: 3 Here, LayerMapping transforme ... ポートする際に使用するデータベースを設定します。デフォルトは 'default' です。 save() のキーワード引数 ¶ LayerMapping. save ( verbose = False , fid_range = False , step = False , progress = False , silent = False , stream = sys.stdout , strict = False ) [ソ ... model mapping will cease upon the first error encountered. The default value ( False ) behavior is to attempt to continue. verbose 設定された場合、データベース上で実行される各モデル保存の後に情報が出力されます。 トラブルシューティング ¶ メモリ不足 ¶ As ...
https://man.mtool.work/django/6.1/ref/contrib/gis/layermapping.html
LayerMapping データインポートユーティリティ — Django 6.1 ドキュメント 8811
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » LayerMapping データインポートユーティリティ ¶ LayerMapping クラスは、ベクトル空間データファイル (例: shapefile) の内容を GeoDjango モデルにマッピング ... GC name. ... } # The mapping is a dictionary >>> lm = LayerMapping ( TestGeo , "test_poly.shp" , mapping ) >>> lm . save ( verbose = True ) # Save the layermap, imports the data. Saved: Name: 1 Saved: Name: 2 Saved: Name: 3 Here, LayerMapping transforme ... ポートする際に使用するデータベースを設定します。デフォルトは 'default' です。 save() のキーワード引数 ¶ LayerMapping. save ( verbose = False , fid_range = False , step = False , progress = False , silent = False , stream = sys.stdout , strict = False ) [ソ ... model mapping will cease upon the first error encountered. The default value ( False ) behavior is to attempt to continue. verbose 設定された場合、データベース上で実行される各モデル保存の後に情報が出力されます。 トラブルシューティング ¶ メモリ不足 ¶ As ...
https://man.mtool.work/django/6.1/ref/contrib/gis/layermapping.html
Coding style — Django 6.1 ドキュメント 8603
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Coding style ¶ Please follow these coding standards when writing code for inclusion in Django. Pre-commit checks ¶ pre-commit is a framework for man ... not be used for any string that may require translation, including error and logging messages. In general format() is more verbose, so the other formatting methods are preferred. Don't waste time doing unrelated refactoring of existing code to adjust th ... del ): first_name = models . CharField ( max_length = 20 ) last_name = models . CharField ( max_length = 40 ) class Meta : verbose_name_plural = "people" Don't do this: class Person ( models . Model ): class Meta : verbose_name_plural = "people" first_n ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
Coding style — Django 6.1 ドキュメント 8603
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Coding style ¶ Please follow these coding standards when writing code for inclusion in Django. Pre-commit checks ¶ pre-commit is a framework for man ... not be used for any string that may require translation, including error and logging messages. In general format() is more verbose, so the other formatting methods are preferred. Don't waste time doing unrelated refactoring of existing code to adjust th ... del ): first_name = models . CharField ( max_length = 20 ) last_name = models . CharField ( max_length = 40 ) class Meta : verbose_name_plural = "people" Don't do this: class Person ( models . Model ): class Meta : verbose_name_plural = "people" first_n ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
PREV 1 2 3 4 5 6 NEXT