per page, with , order by , clip by
Results of 1 - 6 of about 6 for zoneinfo (0.004 sec.)
タイムゾーン 12503
タイムゾーン 概要 タイムゾーンのサポートが有効な場合、Django は日時情報をデータベースには UTC で保存し、内部ではタイムゾーンを意識した(aware な) datetime オブジェクトを使用します。フォームではそれをエンドユーザーのタイムゾーンに変換して表 ... フォルトで有効になっています。無効にするには、設定ファイルで USE_TZ = False を設定してください。 タイムゾーンのサポートには zoneinfo を使います。これは Python 3.9 から Python 標準ライブラリの一部となりました。 特定の問題と格闘している場合は、 タイムゾーン ... atetime コンストラクタの tzinfo 引数は、夏時間を含むタイムゾーンでは正しく動作しません。他のタイムゾーンを使用する場合は、 zoneinfo のドキュメントをよく確認してください。 注釈 Python の datetime.time オブジェクトは、 tzinfo 属性を持ちます。また PostgreSQ ... 時オブジェクトを作成するべきです。(DST移行中に日時に適用すべきオフセットを指定するために fold 属性を使用する例については、 zoneinfo ドキュメントの Using ZoneInfo セクション を参照してください。) 実際には、これはめったに問題になりません。Django はモデルや ...
https://man.mtool.work/django/6.1/topics/i18n/timezones.html
Django 4.0 リリースノート 9925
Django 4.0 リリースノート 2021年12月7日 Django 4.0 へようこそ! このリリースノートでは、 バージョン 4.0 の新機能 と、Django 3.2 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... スを使用することを 強く推奨 します。 The Django 3.2.x series is the last to support Python 3.6 and 3.7. Django 4.0 の新機能 zoneinfo default timezone implementation The Python standard library's zoneinfo is now the default timezone implementation in Djang ... o. This is the next step in the migration from using pytz to using zoneinfo . Django 3.2 allowed the use of non- pytz time zones. Django 4.0 makes zoneinfo the default implementation. Support for py ... tz is now deprecated and will be removed in Django 5.0. zoneinfo is part of the Python standard library from Python 3.9. The backports.zoneinfo package is automatically installed alongsid ...
https://man.mtool.work/django/6.1/releases/4.0.html
データベース関数 9724
データベース関数 The classes documented below provide a way for users to use functions provided by the underlying database as annotations, aggregations, or filters in Django. Functions are also expressions , so they can be used and combined ... 。Django は通常データベースの extract 関数を使うので、データベースがサポートしている lookup_name を使うことができます。通常 zoneinfo によって提供される tzinfo サブクラスを渡すと、特定のタイムゾーンの値を抽出できます。 datetime 2015-06-15 23:30:01.000321+0 ... 00) に変換しています。これにより、返される日、曜日、時間の値が変わります: >>> from django.utils import timezone >>> import zoneinfo >>> melb = zoneinfo . ZoneInfo ( "Australia/Melbourne" ) # UTC+10:00 >>> with timezone . override ( melb ): ... Experiment ... : 9} 明示的にタイムゾーンを Extract 関数に渡しても同じように動作し、アクティブなタイムゾーンよりも優先されます: >>> import zoneinfo >>> melb = zoneinfo . ZoneInfo ( "Australia/Melbourne" ) >>> Experiment . objects . annotate ( ... day = ExtractDay ( "sta ...
https://man.mtool.work/django/6.1/ref/models/database-functions.html
マイグレーション 7677
マイグレーション マイグレーション (Migrations) は、Django でモデルに対して行った変更 (フィールドの追加やモデルの削除など) をデータベーススキーマに反映させる方法です。大抵のマイグレーションは自動で行われるものの、いつマイグレーションが作られ ... , dict , frozendict , range datetime.date 、 datetime.time 、 datetime.datetime インスタンス (timezone-aware なものも含む) zoneinfo.ZoneInfo instances decimal.Decimal インスタンス enum.Enum または enum.Flag インスタンス uuid.UUID インスタンス functools.p ... カスタムの deconstruct() メソッドを持つすべてのオブジェクト ( 以下を参照 ) Changed in Django 6.0: Serialization support for zoneinfo.ZoneInfo instances was added. Django は以下のオブジェクトをシリアライズできません。 ネストしたクラス 任意のクラスのインスタ ...
https://man.mtool.work/django/6.1/topics/migrations.html
Django 6.0 release notes 7604
Django 6.0 release notes December 3, 2025 Welcome to Django 6.0! These release notes cover the new features , as well as some backwards incompatible changes you should be aware of when upgrading from Django 5.2 or earlier. We've begun the d ... ons can now themselves be squashed before being transitioned to normal migrations. Migrations now support serialization of zoneinfo.ZoneInfo instances. Serialization of deconstructible objects now supports keyword arguments with names that are not valid ...
https://man.mtool.work/django/6.1/releases/6.0.html
Django 3.2 リリースノート 7348
Django 3.2 リリースノート April 6, 2021 Django 3.2 へようこそ! このリリースノートでは、 バージョン 3.2 の新機能 と、Django 3.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... ril 2021. Django 3.2 supports MySQL 5.7 and higher. その他 Django now supports non- pytz time zones, such as Python 3.9+'s zoneinfo module and its backport. The undocumented SpatiaLiteOperations.proj4_version() method is renamed to proj_version() . slugi ...
https://man.mtool.work/django/6.1/releases/3.2.html
PREV 1 NEXT