per page, with , order by , clip by
Results of 1 - 10 of about 32 for disable (0.003 sec.)
ロギング 13532
ロギング 参考 ロギングの設定と利用 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) 12340
フィクスチャ (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
管理アクション 11148
管理アクション 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 9649
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 times. We appreciate any and all contributions to the test suite! The Django tests all use the ... 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 ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/unit-tests...
Django 3.0.1 リリースノート 9649
Django 3.0.1 リリースノート December 18, 2019 Django 3.0.1 では、セキュリティの問題1件と 3.0 におけるいくつかのバグを修正しました。 CVE-2019-19844: Potential account hijack via password reset form By submitting a suitably crafted email addr ... 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
ロギングの設定と利用 8763
ロギングの設定と利用 参考 Django のロギング リファレンス Django のロギングの概要 Django はそのままで動作する デフォルトのロギング設定 を持っており、すぐに拡張可能です。 基本的なロギング呼び出しを作成する ログメッセージをコード内から送信する ... します。 LOGGING 辞書を作成する settings.py に以下を追加します: LOGGING = { "version" : 1 , # the dictConfig format version "disable_existing_loggers" : False , # retain the default loggers } ほとんどの場合、 disable_existing_loggers を False に設定するこ ...
https://man.mtool.work/django/6.1/howto/logging.html
Django 1.11.1 リリースノート 8763
Django 1.11.1 リリースノート May 6, 2017 Django 1.11.1 adds a minor feature and fixes several bugs in 1.11. Allowed disabling server-side cursors on PostgreSQL The change in Django 1.11 to make QuerySet.iterator() use server-side cursors on ... 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. バグ修正 ...
https://man.mtool.work/django/6.1/releases/1.11.1.html
Django 1.10 リリースノート 8473
Django 1.10 リリースノート 2016年8月1日 Django 1.10 へようこそ! このリリースノートでは、 バージョン 1.10 の新機能 と、Django 1.9 以前からアップグレードする際に注意が必要な 後方互換性が失われた変更点 について説明します。私たちは、非推奨の期間 ... . 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 ...
https://man.mtool.work/django/6.1/releases/1.10.html
Django 1.4 リリースノート 8473
Django 1.4 リリースノート March 23, 2012 Django 1.4 へようこそ! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 1.3 or older versions. We've a ... 階層 . 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 ...
https://man.mtool.work/django/6.1/releases/1.4.html
Django 3.2 リリースノート 8167
Django 3.2 リリースノート April 6, 2021 Django 3.2 へようこそ! このリリースノートでは、 バージョン 3.2 の新機能 と、Django 3.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... 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 ...
https://man.mtool.work/django/6.1/releases/3.2.html
PREV 1 2 3 4 NEXT