per page, with , order by , clip by
Results of 1 - 10 of about 15 for duration (0.018 sec.)
データベースの計測 13271
データベースの計測 コードから発行されたクエリを理解して制御するために、Django は、データベースクエリの実行周辺にラッパー関数をインストールするためのフックを提供しています。たとえば、ラッパーは、クエリのカウント、クエリの実行時間の測定、クエ ... atus" ] = "error" current_query [ "exception" ] = e raise else : current_query [ "status" ] = "ok" return result finally : duration = time . monotonic () - start current_query [ "duration" ] = duration self . queries . append ( current_query ) これを使用 ...
https://man.mtool.work/django/6.1/topics/db/instrumentation.html
Django 3.1.13 リリースノート 11947
Django 3.1.13 リリースノート July 1, 2021 Django 3.1.13 fixes a security issue with severity "high" in 3.1.12. CVE-2021-35042: Potential SQL injection via unsanitized QuerySet.order_by() input Unsanitized user input passed to QuerySet.order ... tion even if a deprecation warning is emitted. As a mitigation the strict column reference validation was restored for the duration of the deprecation period. This regression appeared in 3.1 as a side effect of fixing #31426 . The issue is not present in ...
https://man.mtool.work/django/6.1/releases/3.1.13.html
Django 3.2.5 リリースノート 10623
Django 3.2.5 リリースノート July 1, 2021 Django 3.2.5 では、 3.2.4 における深刻度 "high" のセキュリティの問題1件と、いくつかのバグを修正しました。また、 Transifex からの最新の文字列翻訳が反映されました。 CVE-2021-35042: Potential SQL inject ... tion even if a deprecation warning is emitted. As a mitigation the strict column reference validation was restored for the duration of the deprecation period. This regression appeared in 3.1 as a side effect of fixing #31426 . The issue is not present in ...
https://man.mtool.work/django/6.1/releases/3.2.5.html
Django 3.1 リリースノート 8969
Django 3.1 リリースノート August 4, 2020 Django 3.1 へようこそ! このリリースノートでは、 バージョン 3.1 の新機能 と、Django 3.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... r in to_url() to indicate no match when reversing URLs. ユーティリティ filepath_to_uri() now supports pathlib.Path . parse_duration() now supports comma separators for decimal fractions in the ISO 8601 format. parse_datetime() , parse_duration() , and pa ...
https://man.mtool.work/django/6.1/releases/3.1.html
Django ユーティリティ (django.utils) 8307
Django ユーティリティ ( django.utils ) このドキュメントは、 django.utils のすべての安定したモジュールを対象としています。 django.utils 内のほとんどのモジュールは内部使用を目的としていることから、 内部リリース非推奨ポリシー に従い、以下に記載 ... に対応しています。もし value がそれを記述している場合、結果の tzinfo 属性は datetime.timezone インスタンスになります。 parse_duration ( value ) [ソース] 文字列を解析し、 datetime.timedelta を返します。 データは、 "DD HH:MM:SS.uuuuuu" 、 "DD HH:MM:SS,uuuuuu ... years ( Y ) and months ( M ) are unsupported as they cannot be represented by timedelta . Changed in Django 6.1: ISO 8601 duration parsing now supports weeks ( PnW ). django.utils.decorators method_decorator ( decorator , name = '' ) [ソース] 関数デコレ ...
https://man.mtool.work/django/6.1/ref/utils.html
Django 2.2 リリースノート 8307
Django 2.2 リリースノート April 1, 2019 Django 2.2 へようこそ! このリリースノートでは、 バージョン 2.2 の新機能 と、Django 2.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... ion tables on PostgreSQL. In older versions, models are created child tables instead the parent. inspectdb now introspects DurationField for Oracle and PostgreSQL, and AutoField for SQLite. On Oracle, dbshell is wrapped with rlwrap , if available. rlwrap ... r set DatabaseFeatures.supports_ignore_conflicts to False . Third party database backends must implement introspection for DurationField or set DatabaseFeatures.can_introspect_duration_field to False . DatabaseFeatures.uses_savepoints now defaults to Tru ...
https://man.mtool.work/django/6.1/releases/2.2.html
ロギング 7976
ロギング 参考 ロギングの設定と利用 Django のロギングの概要 Django の logging モジュールは Python の 組み込み logging モジュールを継承しています。 Logging は、一般的なDjangoの django.setup() 関数の一部として設定されているため、明示的に無効に ... の SQL は DEBUG レベルでメッセージが送られます。 このロガーに送られるメッセージには、以下のようなコンテキストが含まれます。 duration : SQLを実行するのにかかった時間。 sql : 実行されたSQL文。 params : SQLの呼び出しに使ったパラメータ。 alias : SQL 呼び出しで ...
https://man.mtool.work/django/6.1/ref/logging.html
Django 3.2 リリースノート 7976
Django 3.2 リリースノート April 6, 2021 Django 3.2 へようこそ! このリリースノートでは、 バージョン 3.2 の新機能 と、Django 3.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... rospect_autofield can_introspect_big_integer_field can_introspect_binary_field can_introspect_decimal_field can_introspect_duration_field can_introspect_ip_address_field can_introspect_positive_integer_field can_introspect_small_integer_field can_introsp ...
https://man.mtool.work/django/6.1/releases/3.2.html
Django 6.1 release notes 7976
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 ... . Previously, they would consume the streaming response's content, causing subsequent calls to fail. ユーティリティ parse_duration() now supports ISO 8601 time periods expressed in weeks ( PnW ). Backwards incompatible changes in 6.1 データベースバックエ ... では、サードパーティのデータベースバックエンドで必要になる可能性のある変更について説明します。 The DatabaseOperations.adapt_durationfield_value() hook is added. If the database has native support for DurationField , override this method to simply return t ...
https://man.mtool.work/django/6.1/releases/6.1.html
クエリ式 (Query Expression) 7645
クエリ式 (Query Expression) クエリ式 (query expression) は、update、create、filter、order by、annotation、またはaggregateの一部として使用できる値または計算を記述します。式が真偽値を出力する場合、フィルタで直接使用できます。クエリの記述に使用 ... DateTimeField , ExpressionWrapper , F Ticket . objects . annotate ( expires = ExpressionWrapper ( F ( "active_at" ) + F ( "duration" ), output_field = DateTimeField () ) ) ForeignKey のようなリレーション先フィールドを参照する場合、 F() はモデルインスタン ...
https://man.mtool.work/django/6.1/ref/models/expressions.html
PREV 1 2 NEXT