... ve begun the deprecation process for some features . オーバービュー ¶ The biggest new feature in Django 1.4 is support for time zones when handling date/times. When enabled, this Django will store date/times in UTC, use timezone-aware objects interna ... lly, and translate them to users' local timezones for display. If you're upgrading an existing project to Django 1.4, switching to the timezone aware mode may take som ... mode disallows some rather sloppy behavior that used to be accepted. We encourage anyone who's upgrading to check out the timezone migration guide and the timezone FAQ for useful pointers. Other notable new features in Django 1.4 include: A number o ... ... ve begun the deprecation process for some features . オーバービュー ¶ The biggest new feature in Django 1.4 is support for time zones when handling date/times. When enabled, this Django will store date/times in UTC, use timezone-aware objects interna ... lly, and translate them to users' local timezones for display. If you're upgrading an existing project to Django 1.4, switching to the timezone aware mode may take som ... mode disallows some rather sloppy behavior that used to be accepted. We encourage anyone who's upgrading to check out the timezone migration guide and the timezone FAQ for useful pointers. Other notable new features in Django 1.4 include: A number o ... ... て関数の名前を利用します。 最後に、 register.filter() は 3 つのキーワード引数 ( is_safe 、 needs_autoescape 、 expects_localtime ) を受け入れます。これらの引数は、後述の フィルタと自動エスケープ と フィルタとタイムゾーン の中で説明されています。 文字列 ... omment | urlize_and_linebreaks }} これは以下と同等です: {{ comment | urlize | linebreaksbr }} フィルタとタイムゾーン ¶ datetime オブジェクトを操作するカスタムフィルタを書く場合、通常は expects_localtime フラグを True に設定して登録します: @register . ... filter ( expects_localtime = True ) def businesshours ( value ): try : return 9 <= value . hour < 17 except AttributeError : return "" このフラグがセ ... ... て関数の名前を利用します。 最後に、 register.filter() は 3 つのキーワード引数 ( is_safe 、 needs_autoescape 、 expects_localtime ) を受け入れます。これらの引数は、後述の フィルタと自動エスケープ と フィルタとタイムゾーン の中で説明されています。 文字列 ... omment | urlize_and_linebreaks }} これは以下と同等です: {{ comment | urlize | linebreaksbr }} フィルタとタイムゾーン ¶ datetime オブジェクトを操作するカスタムフィルタを書く場合、通常は expects_localtime フラグを True に設定して登録します: @register . ... filter ( expects_localtime = True ) def businesshours ( value ): try : return 9 <= value . hour < 17 except AttributeError : return "" このフラグがセ ... ... ) datetime オブジェクトを使用します。フォームではそれをエンドユーザーのタイムゾーンに変換して表示します。テンプレートでは デフォルトの ... 格闘している場合は、 タイムゾーンの FAQ を参照してください。 コンセプト ¶ native と aware の日時オブジェクト ¶ Python の datetime.datetime のオブジェクトには、タイムゾーン情報を保持するために使える tzinfo 属性があり、これは datetime.tzinfo のサブクラス ... のインスタンスで表されます。 この属性がセットされオフセットを示すとき、datetime オブジェクトは aware (タイムゾーンを意識した日時) となります。それ以外の場合は naive (タイムゾーンを意識しない素朴な日時) ... ... ) datetime オブジェクトを使用します。フォームではそれをエンドユーザーのタイムゾーンに変換して表示します。テンプレートでは デフォルトの ... 格闘している場合は、 タイムゾーンの FAQ を参照してください。 コンセプト ¶ native と aware の日時オブジェクト ¶ Python の datetime.datetime のオブジェクトには、タイムゾーン情報を保持するために使える tzinfo 属性があり、これは datetime.tzinfo のサブクラス ... のインスタンスで表されます。 この属性がセットされオフセットを示すとき、datetime オブジェクトは aware (タイムゾーンを意識した日時) となります。それ以外の場合は naive (タイムゾーンを意識しない素朴な日時) ... ... ear friend and developer. Malcolm was a long-time contributor to Django, a model community member, a brilliant mind, and a friend. His contributions to Django — and to many ... more details, see Django におけるテスト . This change is backwards-incompatible; see the backwards-incompatibility notes . Time zone aware aggregation ¶ The support for time zones introduced in Django 1.4 didn't work well with QuerySet.dates() : aggr ... egation was always performed in UTC. This limitation was lifted in Django 1.6. Use QuerySet.datetimes() to perform time zone aware aggregation on a DateTimeField . Support for savepoints in SQLite ¶ Django 1.6 adds support ... ... ear friend and developer. Malcolm was a long-time contributor to Django, a model community member, a brilliant mind, and a friend. His contributions to Django — and to many ... more details, see Django におけるテスト . This change is backwards-incompatible; see the backwards-incompatibility notes . Time zone aware aggregation ¶ The support for time zones introduced in Django 1.4 didn't work well with QuerySet.dates() : aggr ... egation was always performed in UTC. This limitation was lifted in Django 1.6. Use QuerySet.datetimes() to perform time zone aware aggregation on a DateTimeField . Support for savepoints in SQLite ¶ Django 1.6 adds support ... ... ズすることもできます。 change form ページに inline form の追加または削除時 に発生する jQuery イベントが追加されました。 The time picker widget includes a '6 p.m' option for consistency of having predefined options every 6 hours. JavaScript slug 生成機 ... にリダイレクトされるようになりました。 The django.views.i18n.javascript_catalog() view now works correctly if used multiple times with different configurations on the same page. django.utils.timezone.make_aware() 関数が is_dst 引数を取って、DST 中の曖 ... ch migrations will be squashed. モデル ¶ QuerySet.bulk_create() now works on proxy models. Database configuration gained a TIME_ZONE option for interacting with databases that store datetimes in local time and don't support time zones when USE_TZ is ... ... ズすることもできます。 change form ページに inline form の追加または削除時 に発生する jQuery イベントが追加されました。 The time picker widget includes a '6 p.m' option for consistency of having predefined options every 6 hours. JavaScript slug 生成機 ... にリダイレクトされるようになりました。 The django.views.i18n.javascript_catalog() view now works correctly if used multiple times with different configurations on the same page. django.utils.timezone.make_aware() 関数が is_dst 引数を取って、DST 中の曖 ... ch migrations will be squashed. モデル ¶ QuerySet.bulk_create() now works on proxy models. Database configuration gained a TIME_ZONE option for interacting with databases that store datetimes in local time and don't support time zones when USE_TZ is ... 2026年10月08日