... ions で定義されています。 AppRegistryNotReady ¶ exception AppRegistryNotReady [ソース] ¶ この例外は、ORM を初期化する アプリケーション読み込みプロセス が完了する前にモデルを使用しよ ... うとしたときに発生します。 ObjectDoesNotExist ¶ exception ObjectDoesNotExist [ソース] ¶ Model.DoesNotExist 例外の基底クラスです。 ObjectDoesNotExist のための try/except は、すべての ... モデルの DoesNotExist 例外をキャッチします。 get() を参照してください。 ObjectNotUpdated ¶ New in Django 6.0. exception ObjectNotUpdated [ソース] ¶ The base class for Model.NotUpdated exceptions. A try/except for ObjectNotUpdated will catch N ... ... ions で定義されています。 AppRegistryNotReady ¶ exception AppRegistryNotReady [ソース] ¶ この例外は、ORM を初期化する アプリケーション読み込みプロセス が完了する前にモデルを使用しよ ... うとしたときに発生します。 ObjectDoesNotExist ¶ exception ObjectDoesNotExist [ソース] ¶ Model.DoesNotExist 例外の基底クラスです。 ObjectDoesNotExist のための try/except は、すべての ... モデルの DoesNotExist 例外をキャッチします。 get() を参照してください。 ObjectNotUpdated ¶ New in Django 6.0. exception ObjectNotUpdated [ソース] ¶ The base class for Model.NotUpdated exceptions. A try/except for ObjectNotUpdated will catch N ... ... 照してください。 属性 ¶ DoesNotExist ¶ exception Model. DoesNotExist ¶ この例外は、期待したオブジェクトが見つからない場合に ORM が発生させます。例えば QuerySet.get() で、指 ... らなかったオブジェクトのクラスを特定することで、特定のモデルクラスの例外をキャッチできるようにします。この例外は django.core.exceptions.ObjectDoesNotExist のサブクラスです。 MultipleObjectsReturned ¶ exception Model. MultipleObjectsReturned ¶ この例外は、 Q ... が見つかったオブジェクトクラスを特定することで、特定のモデルクラスの例外をキャッチできるようにします。この例外は django.core.exceptions.MultipleObjectsReturned のサブクラスです。 NotUpdated ¶ New in Django 6.0. exception Model. NotUpdated ¶ This exception i ... ... 照してください。 属性 ¶ DoesNotExist ¶ exception Model. DoesNotExist ¶ この例外は、期待したオブジェクトが見つからない場合に ORM が発生させます。例えば QuerySet.get() で、指 ... らなかったオブジェクトのクラスを特定することで、特定のモデルクラスの例外をキャッチできるようにします。この例外は django.core.exceptions.ObjectDoesNotExist のサブクラスです。 MultipleObjectsReturned ¶ exception Model. MultipleObjectsReturned ¶ この例外は、 Q ... が見つかったオブジェクトクラスを特定することで、特定のモデルクラスの例外をキャッチできるようにします。この例外は django.core.exceptions.MultipleObjectsReturned のサブクラスです。 NotUpdated ¶ New in Django 6.0. exception Model. NotUpdated ¶ This exception i ... ... formance of the Django 1.1 codebase. With one exception, Django 1.1.4 maintains backwards compatibility with Django 1.1.3. It also contains a number of fixes and other improvemen ... ties, and deprecated features in the 1.1 branch, see the Django 1.1 リリースノート . Backwards incompatible changes ¶ CSRF exception for AJAX requests ¶ Django includes a CSRF-protection mechanism, which makes use of a token inserted into outgoing forms. ... n checks for the token's presence on form submission, and validates it. Prior to Django 1.2.5, our CSRF protection made an exception for AJAX requests, on the following basis: Many AJAX toolkits add an X-Requested-With header when using XMLHttpRequest. Br ... ... formance of the Django 1.1 codebase. With one exception, Django 1.1.4 maintains backwards compatibility with Django 1.1.3. It also contains a number of fixes and other improvemen ... ties, and deprecated features in the 1.1 branch, see the Django 1.1 リリースノート . Backwards incompatible changes ¶ CSRF exception for AJAX requests ¶ Django includes a CSRF-protection mechanism, which makes use of a token inserted into outgoing forms. ... n checks for the token's presence on form submission, and validates it. Prior to Django 1.2.5, our CSRF protection made an exception for AJAX requests, on the following basis: Many AJAX toolkits add an X-Requested-With header when using XMLHttpRequest. Br ... ... 用意されていて、このデコレータを使えば、CSRF の検証が必要になったどの時点でも、明示的にビューを制御できるからです。 process_exception() ¶ process_exception ( request , exception ) ¶ request は HttpRequest オブジェクトです。 exception は、ビュー関数から投げ ... られた Exception オブジェクトです。 Django は、ビューが例外を起こした時に process_exception() を呼び出します。 process_exception() は None ... ブラウザに返されます。そうでなければ、 デフォルトの例外のハンドリング が行われます。 繰り返しますが、ミドルウェアは process_exception を含むレスポンスフェーズで逆順に実行されます。例外ミドルウェアがレスポンスを返した場合、そのミドルウェアの上のミドルウェア ... ... en enqueued, or is ready to be executed again. RUNNING ¶ The Task is currently being executed. FAILED ¶ The Task raised an exception during execution, or was unable to start. SUCCESSFUL ¶ The Task has finished executing successfully. class TaskResult [ソー ... nformation about the error raised during the execution of a Task . traceback ¶ The traceback (as a string) from the raised exception when the Task failed. exception_class ¶ The exception class raised when executing the Task . Backends ¶ Backends handle ho ... lts for the enqueued Tasks, in the order they were enqueued. clear () [ソース] ¶ Clears the list of stored results. 例外 ¶ exception InvalidTask [ソース] ¶ Raised when the Task attempting to be enqueued is invalid. exception InvalidTaskBackend [ソース] ¶ ... ... 用意されていて、このデコレータを使えば、CSRF の検証が必要になったどの時点でも、明示的にビューを制御できるからです。 process_exception() ¶ process_exception ( request , exception ) ¶ request は HttpRequest オブジェクトです。 exception は、ビュー関数から投げ ... られた Exception オブジェクトです。 Django は、ビューが例外を起こした時に process_exception() を呼び出します。 process_exception() は None ... ブラウザに返されます。そうでなければ、 デフォルトの例外のハンドリング が行われます。 繰り返しますが、ミドルウェアは process_exception を含むレスポンスフェーズで逆順に実行されます。例外ミドルウェアがレスポンスを返した場合、そのミドルウェアの上のミドルウェア ... ... en enqueued, or is ready to be executed again. RUNNING ¶ The Task is currently being executed. FAILED ¶ The Task raised an exception during execution, or was unable to start. SUCCESSFUL ¶ The Task has finished executing successfully. class TaskResult [ソー ... nformation about the error raised during the execution of a Task . traceback ¶ The traceback (as a string) from the raised exception when the Task failed. exception_class ¶ The exception class raised when executing the Task . Backends ¶ Backends handle ho ... lts for the enqueued Tasks, in the order they were enqueued. clear () [ソース] ¶ Clears the list of stored results. 例外 ¶ exception InvalidTask [ソース] ¶ Raised when the Task attempting to be enqueued is invalid. exception InvalidTaskBackend [ソース] ¶ ... 2026年10月08日