... g is acceptable for content like images, maps, videos, and data tables, which require both dimensions to be usable. Forced-colors mode (for example Windows Contrast Themes). Note that this can be tested via the "high_contrast" mode in the screenshot te ... sts . Common issues include: Over-reliance on color for meaning, which is lost in forced-colors mode. Use of !important or inline styles may break forced-colors mode. Recommended assistive technologies Where the UI cha ... ... xed a bug where management command colorized help (introduced in Python 3.14) ignored the --no-color option and the DJANGO_COLORS setting ( #36376 ). ... ... xed a bug where management command colorized help (introduced in Python 3.14) ignored the --no-color option and the DJANGO_COLORS setting ( #36376 ). Fixed a regression in Django 6.0 that caused bulk_create() to crash when introspecting the connection ... ... やタプルでない場合にだけ有効です。 使用例: django-admin migrate --skip-checks 追加の便利機能 シンタックスカラーリング DJANGO_COLORS django-admin / manage.py コマンドは、ターミナルが ANSI カラー出力をサポートしている場合、色分けされた出力を使用します。 -- ... テキストを表示する端末に適しています。 nocolor , これはシンタックスハイライトを無効にします。 パレットを選択するには DJANGO_COLORS 環境変数を設定して使用したいパレットを指定します。例えば、UnixやOS/XのBASHシェルで light パレットを指定するには、ターミナル ... で以下のように実行します: export DJANGO_COLORS = "light" 使用する色をカスタマイズすることもできます。Django は色が使われる役割(ロール)をいくつか指定しています: error - ... ... t に対して years 属性がセットされます: from django import forms BIRTH_YEAR_CHOICES = [ "1980" , "1981" , "1982" ] FAVORITE_COLORS_CHOICES = { "blue" : "Blue" , "green" : "Green" , "black" : "Black" , } class SimpleForm ( forms . Form ): birth_year = fo ... rms . DateField ( widget = forms . SelectDateWidget ( years = BIRTH_YEAR_CHOICES ) ) favorite_colors = forms . MultipleChoiceField ( required = False , widget = forms . CheckboxSelectMultiple , choices = FAVORITE_COLORS_CHO ... ... 出力が追加されます。最近の端末ではCMDとPowerShellの両方で動作するはずです。何らかの理由で無効にしたい場合は、環境変数 DJANGO_COLORS を nocolor に設定してください。 古いWindowsバージョンやレガシー端末では、シンタックスカラーリングを有効にするには colorama ... ... nd calculated values can be displayed alongside editable fields. Customizable syntax highlighting You can now use a DJANGO_COLORS environment variable to modify or disable the colors used by django-admin.py to provide syntax highlighting . Syndication ... ... MultipleObjectTemplateResponseMixin (組み込みクラス) django.views.i18n module DJANGO_ALLOW_ASYNC_UNSAFE , [1] , [2] DJANGO_COLORS , [1] , [2] , [3] , [4] DJANGO_RUNSERVER_HIDE_WARNING DJANGO_SETTINGS_MODULE , [1] , [2] , [3] , [4] , [5] , [6] , [7] , [ ... 2026年10月08日