per page, with , order by , clip by
Results of 1 - 10 of about 229 for model (0.007 sec.)
モデルインスタンスリファレンス 9072
モデルインスタンスリファレンス このドキュメントでは、 Model API の詳細を説明しています。 モデル と データベースクエリ ガイドにある説明を前提としていますので、このドキュメントを読む前にこの 2 つを読んでおいた方がよいでしょう。 このリファレン ... オブジェクトを作成する モデルの新しいインスタンスを作成するには、他の Python クラスと同様にインスタンス化してください: class Model ( ** kwargs ) [ソース] The keyword arguments are the names of the fields you've defined on your model. Note that instantia ... ting a model in no way touches your database; for that, you need to save() . 注釈 You may be tempted to customize the model by overridi ... ng the __init__ method. If you do so, however, take care not to change the calling signature as any change may prevent the model instance from being saved. Additionally, referring to model fields within __init__ may potentially result in infinite recu ...
https://man.mtool.work/django/6.1/ref/models/instances.html
システムチェックフレームワーク 9041
システムチェックフレームワーク システムチェックフレームワークは、Django プロジェクトを検証するための静的チェックのセットです。一般的な問題を検出し、それらを修正するヒントを提供します。このフレームワークは拡張性があり、独自のチェックを簡単に ... ァイル関連の設定をチェックします。 gis : Checks django.contrib.gis configuration. mail : Checks email related configuration. models : モデル、フィールド、およびマネージャー定義をチェックします。 security : セキュリティ関連の設定をチェックします。 signal ... 0 : Pillow がインストールされていないため、 ImageField を使用できません。 関連フィールド fields.E300 : フィールドはモデル <model> とのリレーションを定義していますが、そのモデルはインストールされていないか、抽象です。 fields.E301 : フィールドは、スワッ ... プアウトされたモデル <app_label>.<model> とのリレーションを定義しています。 fields.E302 : <app_label>.<model>.<field name> の逆アクセサ <related model>.<accessor ...
https://man.mtool.work/django/6.1/ref/checks.html
Django 1.6 リリースノート 8784
Django 1.6 リリースノート 注釈 Dedicated to Malcolm Tredinnick On March 17, 2013, the Django project and the free software community lost a very dear friend and developer. Malcolm was a long-time contributor to Django, a model community mem ... ibility in the location of tests. The previous runner ( django.test.simple.DjangoTestSuiteRunner ) found tests only in the models.py and tests.py modules of a Python package in INSTALLED_APPS . The new runner ( django.test.runner.DiscoverRunner ) uses ... d . Support for savepoints in SQLite Django 1.6 adds support for savepoints in SQLite, with some limitations . BinaryField model field A new django.db.models.BinaryField model field allows storage of raw binary data in the database. GeoDjango form wid ... to verify if your current configuration (currently oriented at settings) is compatible with the current version of Django. Model.save() algorithm changed The Model.save() method now tries to directly UPDATE the database if the instance has a primary k ...
https://man.mtool.work/django/6.1/releases/1.6.html
Django 2.1.15 リリースノート 8753
Django 2.1.15 リリースノート 2019年12月2日 Django 2.1.15 は 2.1.14 に含まれるセキュリティ脆弱性とデータ損失のバグを修正しています。 CVE-2019-19118: Privilege escalation in the Django admin. Since Django 2.1, a Django model admin displaying ... a parent model with related model inlines, where the user has view-only permissions to a parent model but edit permissions to the inline ... model, would display a read-only view of the parent model but editable forms for the inline. Submitting these forms would not allow direct edits to the parent model, but would trig ... ger the parent model's save() method, and cause pre and post-save signal handlers to be invoked. This is a privilege escalation as a user who l ...
https://man.mtool.work/django/6.1/releases/2.1.15.html
Django 1.8 リリースノート 8711
Django 1.8 リリースノート April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... pport for Python 3.2 in February 2016, we won't test Django 1.8.x on Python 3.2 after the end of 2016. Django 1.8 の新機能 Model._meta API Django now has a formalized API for Model._meta , providing an officially supported way to retrieve fields and f ... ilter fields based on their attributes . The Model._meta object has been part of Django since the days of pre-0.96 "Magic Removal" -- it just wasn't an official, stable API. ... ield on other backends. There is a corresponding form field . Django now has a DurationField for storing periods of time - modeled in Python by timedelta . It is stored in the native interval data type on PostgreSQL, as a INTERVAL DAY(9) TO SECOND(6) ...
https://man.mtool.work/django/6.1/releases/1.8.html
Django 2.2.8 リリースノート 8711
Django 2.2.8 リリースノート 2019年12月2日 Django 2.2.8 fixes a security issue, several bugs in 2.2.7, and adds compatibility with Python 3.8. CVE-2019-19118: Privilege escalation in the Django admin. Since Django 2.1, a Django model admin d ... isplaying a parent model with related model inlines, where the user has view-only permissions to a parent model but edit permissions to the inline ... model, would display a read-only view of the parent model but editable forms for the inline. Submitting these forms would not allow direct edits to the parent model, but would trig ... ger the parent model's save() method, and cause pre and post-save signal handlers to be invoked. This is a privilege escalation as a user who l ...
https://man.mtool.work/django/6.1/releases/2.2.8.html
SchemaEditor 8639
SchemaEditor class BaseDatabaseSchemaEditor [ソース] Django のマイグレーションシステムは2つの部分に分かれています。データベースに対してどのような操作を実行するべきかを計算してその結果を保管するロジックの部分 ( django.db.migrations )と、「モ ... ンテキストマネージャを使ってアクセスできます。 with connection . schema_editor () as schema_editor : schema_editor . delete_model ( MyModel ) これは、トランザクションや遅延SQL ( ForeignKey 制約の作成など) のようなものを管理することを可能にするため、コン ... ーが望む場合にSQLを .sql ファイルにキャプチャできるように、通常のデータベースカーソルの周りに設定されたラッパーです。 create_model() BaseDatabaseSchemaEditor. create_model ( model ) [ソース] 提供されたモデルのために、データベースに新しいテーブルを作成し ... 、必要に応じてユニーク制約やインデックスも作成します。 delete_model() BaseDatabaseSchemaEditor. delete_model ( model ) [ソース] モデルのテーブルをデータベースから削除し、それに紐づくユニーク ...
https://man.mtool.work/django/6.1/ref/schema-editor.html
Django 1.10 リリースノート 7959
Django 1.10 リリースノート 2016年8月1日 Django 1.10 へようこそ! このリリースノートでは、 バージョン 1.10 の新機能 と、Django 1.9 以前からアップグレードする際に注意が必要な 後方互換性が失われた変更点 について説明します。私たちは、非推奨の期間 ... SES setting to the new MIDDLEWARE setting to take advantage of the improvements. Unicode ユーザー名の公式サポート The User model in django.contrib.auth originally only accepted ASCII letters and numbers in usernames. Although it wasn't a deliberate ch ... を削除したため、必要な場合に Content-Security-Policy HTTP ヘッダーを有効にすることができるようになりました。 The new InlineModelAdmin.classes attribute allows specifying classes on inline fieldsets. Inlines with a collapse class will be initially coll ... sed and their header will have a small "show" link. If a user doesn't have the add permission, the object-tools block on a model's changelist will now be rendered (without the add button). This makes it easier to add custom tools in this case. The Log ...
https://man.mtool.work/django/6.1/releases/1.10.html
Django 1.7 リリースノート 7495
Django 1.7 リリースノート September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... ease of Django 1.8. Django 1.7 の新機能 Schema migrations Django now has built-in support for schema migrations. It allows models to be updated, changed, and deleted by creating migration files that represent the model changes and which can be run on ... calls to syncdb will still work as before. A new makemigrations command provides an easy way to autodetect changes to your models and make migrations for them. django.db.models.signals.pre_syncdb and django.db.models.signals.post_syncdb have been depr ... or ManyToManyField to) apps with migrations. App-loading refactor Historically, Django applications were tightly linked to models. A singleton known as the "app cache" dealt with both installed applications and models. The models module was used as an ...
https://man.mtool.work/django/6.1/releases/1.7.html
Model クラスのリファレンス 7423
Model クラスのリファレンス このドキュメントでは Model クラスの機能を扱います。モデルについての詳細は モデルのリファレンスガイドの完全なリスト を参照してください。 属性 DoesNotExist exception Model. DoesNotExist この例外は、期待したオブジェク ... きるようにします。この例外は django.core.exceptions.ObjectDoesNotExist のサブクラスです。 MultipleObjectsReturned exception Model. MultipleObjectsReturned この例外は、 QuerySet.get() によって、指定されたルックアップに対して複数のオブジェクトが見つかった ... します。この例外は django.core.exceptions.MultipleObjectsReturned のサブクラスです。 NotUpdated New in Django 6.0. exception Model. NotUpdated This exception is raised when a forced update of a Model instance does not affect any rows. Django provides a ... NotUpdated exception as an attribute of each model class to identify the class of object that could not be updated, allowing you to catch exceptions for a particular model c ...
https://man.mtool.work/django/6.1/ref/models/class.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT