per page, with , order by , clip by
Results of 1 - 10 of about 64 for disable (0.003 sec.)
ロギング — Django 6.1 ドキュメント 12520
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ロギング ¶ 参考 ロギングの設定と利用 Django ロギング リファレンス Python プログラマは、素早く便利なデバッグツールとして、コード内で print() をよく使 ... す。 デフォルトでは、 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" : ...
https://man.mtool.work/django/6.1/topics/logging.html
フィクスチャ (fixture) — Django 6.1 ドキュメント 11989
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フィクスチャ (fixture) ¶ フィクスチャ (fixture) とは、シリアライズされたデータベースのコンテンツを含むファイルのコレクションです。各フィクスチャには ... 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 ...
https://man.mtool.work/django/6.1/topics/db/fixtures.html
ロギング — Django 6.1 ドキュメント 11731
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ロギング ¶ 参考 ロギングの設定と利用 Django ロギング リファレンス Python プログラマは、素早く便利なデバッグツールとして、コード内で print() をよく使 ... す。 デフォルトでは、 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" : ...
https://man.mtool.work/django/6.1/topics/logging.html
フィクスチャ (fixture) — Django 6.1 ドキュメント 10697
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フィクスチャ (fixture) ¶ フィクスチャ (fixture) とは、シリアライズされたデータベースのコンテンツを含むファイルのコレクションです。各フィクスチャには ... 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 ...
https://man.mtool.work/django/6.1/topics/db/fixtures.html
管理アクション — Django 6.1 ドキュメント 9649
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 管理アクション ¶ Djangoの管理者の基本的な仕事は、一言で言えば、「オブジェクトを選択し、それを変更する」ことに尽きます。これは大多数のユースケースに当 ... 効にしたいことがあるでしょう。アクションを無効にする方法はいくつかあります: サイト全体のアクションを無効にする ¶ 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 ...
https://man.mtool.work/django/6.1/ref/contrib/admin/actions.html
管理アクション — Django 6.1 ドキュメント 9649
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 管理アクション ¶ Djangoの管理者の基本的な仕事は、一言で言えば、「オブジェクトを選択し、それを変更する」ことに尽きます。これは大多数のユースケースに当 ... 効にしたいことがあるでしょう。アクションを無効にする方法はいくつかあります: サイト全体のアクションを無効にする ¶ 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 ...
https://man.mtool.work/django/6.1/ref/contrib/admin/actions.html
Unit tests — Django 6.1 ドキュメント 8600
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Unit tests ¶ Django comes with a test suite of its own, in the tests directory of the code base. It's our policy to make sure all tests pass at all ... 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 ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/unit-tests...
Unit tests — Django 6.1 ドキュメント 8600
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Unit tests ¶ Django comes with a test suite of its own, in the tests directory of the code base. It's our policy to make sure all tests pass at all ... 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 ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/unit-tests...
Django 3.0.1 リリースノート — Django 6.1 ドキュメント 8342
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 3.0.1 リリースノート ¶ December 18, 2019 Django 3.0.1 では、セキュリティの問題1件と 3.0 におけるいくつかのバグを修正しました。 CVE-2019-19844 ... 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 ...
https://man.mtool.work/django/6.1/releases/3.0.1.html
Django 3.0.1 リリースノート — Django 6.1 ドキュメント 8083
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 3.0.1 リリースノート ¶ December 18, 2019 Django 3.0.1 では、セキュリティの問題1件と 3.0 におけるいくつかのバグを修正しました。 CVE-2019-19844 ... 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 ...
https://man.mtool.work/django/6.1/releases/3.0.1.html
PREV 1 2 3 4 5 6 7 NEXT