... す。 デフォルトでは、 LOGGING 設定は、以下のスキームを使って Django のデフォルトロギング設定 に統合されています。 LOGGING の disable_existing_loggers キーの値を True にすると、全てのデフォルトの設定が無効になります(キーが存在しない場合は dictConfig のデフ ... ォルトになります)。このため、 'disable_existing_loggers': True を使う場合は注意してください。 True を設定する必要は殆どないでしょう。 disable_existing_loggers を ... のログメッセージをコンソールに出力するための最低限の設定がこちらです。 settings.py ¶ import os LOGGING = { "version" : 1 , "disable_existing_loggers" : False , "handlers" : { "console" : { "class" : "logging.StreamHandler" , }, }, "root" : { "handlers" : ... ... alled with raw=True since the instance only contains attributes that are local to the model. You may, for example, want to disable handlers that access related fields that aren't present during fixture loading and would otherwise raise an exception: fro ... m django.db.models.signals import post_save from .models import MyModel def my_handler ( ** kwargs ): # disable the handler during fixture loading if kwargs [ "raw" ]: return ... post_save . connect ( my_handler , sender = MyModel ) こ ... のロジックをカプセル化するデコレータを書くこともできます: from functools import wraps def disable_for_loaddata ( signal_handler ): """ Decorator that turns off signal handlers when loading fixture data. """ @wraps ( sign ... ... す。 デフォルトでは、 LOGGING 設定は、以下のスキームを使って Django のデフォルトロギング設定 に統合されています。 LOGGING の disable_existing_loggers キーの値を True にすると、全てのデフォルトの設定が無効になります(キーが存在しない場合は dictConfig のデフ ... ォルトになります)。このため、 'disable_existing_loggers': True を使う場合は注意してください。 True を設定する必要は殆どないでしょう。 disable_existing_loggers を ... のログメッセージをコンソールに出力するための最低限の設定がこちらです。 settings.py ¶ import os LOGGING = { "version" : 1 , "disable_existing_loggers" : False , "handlers" : { "console" : { "class" : "logging.StreamHandler" , }, }, "root" : { "handlers" : ... ... alled with raw=True since the instance only contains attributes that are local to the model. You may, for example, want to disable handlers that access related fields that aren't present during fixture loading and would otherwise raise an exception: fro ... m django.db.models.signals import post_save from .models import MyModel def my_handler ( ** kwargs ): # disable the handler during fixture loading if kwargs [ "raw" ]: return ... post_save . connect ( my_handler , sender = MyModel ) こ ... のロジックをカプセル化するデコレータを書くこともできます: from functools import wraps def disable_for_loaddata ( signal_handler ): """ Decorator that turns off signal handlers when loading fixture data. """ @wraps ( sign ... ... 効にしたいことがあるでしょう。アクションを無効にする方法はいくつかあります: サイト全体のアクションを無効にする ¶ AdminSite. disable_action ( name ) [ソース] ¶ サイト全体のアクション を無効にするには、 AdminSite.disable_action() を呼び出します。 例えば、こ ... のメソッドを使って、組み込みの "delete selected objects" アクションを削除できます: admin . site . disable_action ( "delete_selected" ) 上記の操作を行うと、そのアクションはサイト全体で無効になります。 しかし、ある特定のモデルに対 ... 化されたアクションを再度有効にする必要がある場合は、 ModelAdmin.actions リストに明示的にリストアップしてください: # Globally disable delete selected admin . site . disable_action ( "delete_selected" ) # This ModelAdmin will not have delete_selected availa ... ... 効にしたいことがあるでしょう。アクションを無効にする方法はいくつかあります: サイト全体のアクションを無効にする ¶ AdminSite. disable_action ( name ) [ソース] ¶ サイト全体のアクション を無効にするには、 AdminSite.disable_action() を呼び出します。 例えば、こ ... のメソッドを使って、組み込みの "delete selected objects" アクションを削除できます: admin . site . disable_action ( "delete_selected" ) 上記の操作を行うと、そのアクションはサイト全体で無効になります。 しかし、ある特定のモデルに対 ... 化されたアクションを再度有効にする必要がある場合は、 ModelAdmin.actions リストに明示的にリストアップしてください: # Globally disable delete selected admin . site . disable_action ( "delete_selected" ) # This ModelAdmin will not have delete_selected availa ... ... NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called. To avoid this set a OBJC_DISABLE_INITIALIZE_FORK_SAFETY environment variable, for example: $ OBJC_DISABLE_INITIALIZE_FORK_SAFETY = YES ./runtests.py Or add ... export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES to your shell's startup file (e.g. ~/.profile ). Many test failures with UnicodeEncodeError ¶ I ... ... NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called. To avoid this set a OBJC_DISABLE_INITIALIZE_FORK_SAFETY environment variable, for example: $ OBJC_DISABLE_INITIALIZE_FORK_SAFETY = YES ./runtests.py Or add ... export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES to your shell's startup file (e.g. ~/.profile ). Many test failures with UnicodeEncodeError ¶ I ... ... toring the ability to use Django inside Jupyter and other environments that force an async context, by adding an option to disable 非同期安全性 mechanism with DJANGO_ALLOW_ASYNC_UNSAFE environment variable ( #31056 ). Fixed a regression in Django 3.0 wh ... ... toring the ability to use Django inside Jupyter and other environments that force an async context, by adding an option to disable 非同期安全性 mechanism with DJANGO_ALLOW_ASYNC_UNSAFE environment variable ( #31056 ). Fixed a regression in Django 3.0 wh ... 2026年10月08日