per page, with , order by , clip by
Results of 1 - 10 of about 19 for natural (0.006 sec.)
Django オブジェクトのシリアライズ 15453
Django オブジェクトのシリアライズ Django のシリアライズフレームワークは、Django のモデルを他のフォーマットに「翻訳」する仕組みを提供します。通常、このような他のフォーマットはテキストベースや Django データをネットワーク越しに送信するために使 ... り自然な (ナチュラルな) 参照が助けになることがあります。 このような理由のために Django が提供しているのが、 ナチュラルキー (natural key) です。ナチュラルキーは、オブジェクトのインスタンスをプライマリーキーの値を使用せずに一意に識別するために使える値のタプ ... はもっとずっと人間によってわかりやすくなります。ナチュラルキーの処理を追加するには、Person のデフォルトの Manager を get_by_natural_key() を使用して定義します。Person の場合、よいナチュラルキーは、first name と last name のペアになるでしょう。 from djang ... o.db import models class PersonManager ( models . Manager ): def get_by_natural_key ( self , first_name , last_name ): return self . get ( first_name = first_name , last_name = last_name ) class Person ...
https://man.mtool.work/django/6.1/topics/serialization.html
Django 0.95 リリースノート 9442
Django 0.95 リリースノート Django 0.95 へようこそ! このリリースでは、2006年1月にリリースされた 0.91 から Django の開発が大幅に進んでいます。このリリースのすべての変更点を詳細に書くことはできませんが、以下にその要点を列挙します。 適合性 (sui ... nsequence of decisions made in the early days of Django, prior to its open-source release. It's now possible to write more natural, Pythonic code that works as expected, and there's less "black magic" happening behind the scenes. Aside from that, anothe ... evelopers' quality of life. The new features and changes introduced in 0.95 include: Django now uses a more consistent and natural filtering interface for retrieving objects from the database. User-defined models, functions and constants now appear in t ... e framework required that a database be configured, regardless of whether you actually used it. It's now more explicit and natural to override save() and delete() methods on models, rather than needing to hook into the pre_save() and post_save() method ...
https://man.mtool.work/django/6.1/releases/0.95.html
Django 1.7 リリースノート 9442
Django 1.7 リリースノート September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... マンド The new --no-color option for django-admin disables the colorization of management command output. The new dumpdata --natural-foreign and dumpdata --natural-primary options, and the new use_natural_foreign_keys and use_natural_primary_keys argument ... s for serializers.serialize() , allow the use of natural primary keys when serializing. It is no longer necessary to provide the cache table name or the --database option for the ... method has been renamed to get_backend_timeout() . Despite being a private API, it will go through the normal deprecation. Natural key serialization options The --natural and -n options for dumpdata have been deprecated. Use dumpdata --natural-foreign i ...
https://man.mtool.work/django/6.1/releases/1.7.html
django-admin と manage.py 8486
django-admin と manage.py django-admin は Django の管理タスクのためのコマンドラインユーティリティです。このドキュメントでは、その機能の全体を一通り説明します。 さらに、 manage.py は各 Django プロジェクト内に自動的に作成されます。 jango-admi ... =auth --exclude=contenttypes --database DATABASE データをダンプするデータベースを指定します。デフォルトは default です。 --natural-foreign natural_key() モデルメソッドを使用して、任意の外部キーと多対多リレーションを、メソッドを定義している種類のオブジェ ... ラグを使う必要があります。このオプションと次のオプションの詳細については、 ナチュラルキー のドキュメントを参照しください。 --natural-primary このオブジェクトのシリアライズされたデータの主キーを省略します。これが省略できるのは、デシリアライズ時に計算できる ... 、以下の構文のいずれかを使って渡すことができます: # Similar to the command line management . call_command ( "dumpdata" , "--natural-foreign" ) # Named argument similar to the command line minus the initial dashes and # with internal dashes replaced by un ...
https://man.mtool.work/django/6.1/ref/django-admin.html
Django 6.1 release notes 8383
Django 6.1 release notes August 5, 2026 Welcome to Django 6.1! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 6.0 or earlier. We've begun the ... _FALLBACK to True to continue accepting legacy signed cookies. シリアライズ (シリアル化) Subclasses of models defining the natural_key() method can now opt out of natural key serialization by overriding the method to return an empty tuple: () . This ens ... ures primary keys are serialized when using dumpdata --natural-primary . The XML deserializer now raises SuspiciousOperation when it encounters unexpected nested tags. Tasks The task() ...
https://man.mtool.work/django/6.1/releases/6.1.html
索引 8196
索引 記号 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ア | イ | ク | コ | シ | ス | テ | ハ | ヒ | フ | メ | モ | ロ | 具 | 国 | 環 | 翻 | 表 | 言 | 長 記号 -- dbshell コマン ... startapp コマンドラインオプション startproject コマンドラインオプション --name-field ogrinspect コマンドラインオプション --natural-foreign dumpdata コマンドラインオプション --natural-primary dumpdata コマンドラインオプション --no-color コマンドラインオプ ... Set モジュール) aget_all_permissions() (BaseBackend のメソッド) (ModelBackend のメソッド) (models.User のメソッド) aget_by_natural_key() (models.BaseUserManager のメソッド) aget_expire_at_browser_close() (backends.base.SessionBase のメソッド) aget_expir ... y のクラス) dumpdata django-admin command dumpdata コマンドラインオプション --all --database --exclude --format --indent --natural-foreign --natural-primary --output --pks -a -e -o dumps() (django.core.signing モジュール) DurationField (django.db.models ...
https://man.mtool.work/django/6.1/genindex.html
Django 5.2.18 release notes 8196
Django 5.2.18 release notes October 6, 2026 Django 5.2.18 fixes one security issue with severity "low", three security issues with severity "moderate", and provides a fix for an insufficient security mitigation in 5.2.17. It also fixes one ... hrough the form, such as with: a OneToOneField (or parent link used as the primary key of an inline formset's model), or a natural or UUID primary key included in the form's fields. Models using the default BigAutoField primary key were not affected. Th ...
https://man.mtool.work/django/6.1/releases/5.2.18.html
Django 6.0.9 release notes 8196
Django 6.0.9 release notes October 6, 2026 Django 6.0.9 fixes one security issue with severity "low", three security issues with severity "moderate", and provides a fix for an insufficient security mitigation in 6.0.8. It also fixes one dat ... hrough the form, such as with: a OneToOneField (or parent link used as the primary key of an inline formset's model), or a natural or UUID primary key included in the form's fields. Models using the default BigAutoField primary key were not affected. Th ...
https://man.mtool.work/django/6.1/releases/6.0.9.html
Django 6.1.2 release notes 8093
Django 6.1.2 release notes October 6, 2026 Django 6.1.2 fixes one security issue with severity "low", three security issues with severity "moderate", and provides a fix for an insufficient security mitigation in 6.1. It also fixes one data ... hrough the form, such as with: a OneToOneField (or parent link used as the primary key of an inline formset's model), or a natural or UUID primary key included in the form's fields. Models using the default BigAutoField primary key were not affected. Th ...
https://man.mtool.work/django/6.1/releases/6.1.2.html
contenttypes フレームワーク 7991
contenttypes フレームワーク Django には contenttypes アプリケーションが含まれており、 Django を使ったプロジェクトにインストールされているすべてのモデルを追跡し、モデルを扱うための高レベルで汎用的なインターフェースを提供します。 概要 content ... ンスにマッピングした辞書を返します。 for_concrete_models=False により、プロキシモデルの ContentType を取得できます。 get_by_natural_key ( app_label , model ) [ソース] 与えられたアプリケーションラベルとモデル名で一意に識別される ContentType インスタンスを ... ntType オブジェクトを一意に識別するためにナチュラルキーを使用する必要があるでしょう。詳しくは ナチュラルキー と dumpdata --natural-foreign を参照してください。 これにより、通常の ForeignKey と同じような API が利用できるようになります。各 TaggedItem は、 ...
https://man.mtool.work/django/6.1/ref/contrib/contenttypes.html
PREV 1 2 NEXT