... す。 デフォルトでは、 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 ... ... 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 If ... ... 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 ... ... します。 LOGGING 辞書を作成する settings.py に以下を追加します: LOGGING = { "version" : 1 , # the dictConfig format version "disable_existing_loggers" : False , # retain the default loggers } ほとんどの場合、 disable_existing_loggers を False に設定するこ ... ... PostgreSQL prevents running Django with PgBouncer in transaction pooling mode. To reallow that, use the DISABLE_SERVER_SIDE_CURSORS setting in DATABASES . See トランザクションプールとサーバーサイドカーソル for more discussion. バグ修正 ... ... . Required form fields now have the required HTML attribute. Set the new Form.use_required_attribute attribute to False to disable it. The required attribute isn't included on forms of formsets because the browser validation may not be correct when addi ... lse . Required form fields now have the required HTML attribute. Set the Form.use_required_attribute attribute to False to disable it. You could also add the novalidate attribute to <form> if you don't want browser validation. To disable the required at ... ... 階層 . Backwards incompatible changes in 1.4 SECRET_KEY setting is required Running Django with an empty or known SECRET_KEY disables many of Django's security protections and can lead to remote-code-execution vulnerabilities. No Django site should ever b ... name , mode = "rb" ): return Spam ( open ( self . path ( name ), mode )) YAML deserializer now uses yaml.safe_load yaml.load is able to construct any Python object, which may trigger arbitrary code execution if you process a YAML document that comes fro ... Server Multithreading The development server is now is multithreaded by default. Use the runserver --nothreading option to disable the use of threading in the development server: django-admin.py runserver --nothreading Attributes disabled in markdown wh ... ... model enumeration privacy issue. Although not recommended, you may set the new AdminSite.final_catch_all_view to False to disable the catch-all view. django.contrib.auth PBKDF2 パスワードハッシュに対するデフォルトのイテレーション回数が 216,000 から 260 ... eepcopy() is deprecated and will be removed in Django 4.1. DiscoverRunner now enables faulthandler by default. This can be disabled by using the test --no-faulthandler option. DiscoverRunner and the test management command can now track timings, includi ... . Support for argon2-cffi < 19.1.0 is removed. The cache keys no longer includes the language when internationalization is disabled ( USE_I18N = False ) and localization is enabled ( USE_L10N = True ). After upgrading to Django 3.2 in such configuration ... 2026年10月08日