per page, with , order by , clip by
Results of 1 - 5 of about 5 for configs (0.003 sec.)
システムチェックフレームワーク 12777
システムチェックフレームワーク システムチェックフレームワークは、Django プロジェクトを検証するための静的チェックのセットです。一般的な問題を検出し、それらを修正するヒントを提供します。このフレームワークは拡張性があり、独自のチェックを簡単に ... は、例としてのスタブチェック関数です。 from django.core.checks import Error , register @register () def example_check ( app_configs , ** kwargs ): errors = [] # ... your check logic here if check_failed : errors . append ( Error ( "an error" , hint = "A ... hint." , obj = checked_object , id = "myapp.E001" , ) ) return errors チェック関数は、 必ず app_configs 引数を受け入れる必要があります。この引数は、調査されるべきアプリケーションのリストです。 None の場合、チェックはプロジェク ... 下のように呼び出します: from django.core.checks import register , Tags @register ( Tags . compatibility ) def my_check ( app_configs , ** kwargs ): # ... perform compatibility checks and collect errors return errors 以下のように、本番用の設定ファイルにのみ ...
https://man.mtool.work/django/6.1/topics/checks.html
カスタム django-admin コマンドの作り方 9026
カスタム django-admin コマンドの作り方 manage.py を用いることで独自のアクションを登録する事ができます。例として、あなたが配布している Django アプリケーションに manage.py アクションを追加したくなったとします。このドキュメントでは、 このチュー ... できます ( output_transaction が True の場合、文字列は BEGIN; と COMMIT; で挟まれて出力されます)。 BaseCommand. check ( app_configs = None , tags = None , display_num_errors = False , include_deployment_checks = False , fail_level = checks.ERROR , databa ... 用します。致命的な問題は CommandError 例外を発生し、警告は stderr への出力、重要でない通知は stdout への出力となります。 app_configs および tags が共に None であった場合、デプロイメントとデータベース関連のチェック以外の全てのシステムチェックが実行されます ...
https://man.mtool.work/django/6.1/howto/custom-management-commands.html
アプリケーション 8089
アプリケーション Django には、設定の保存と調査の手段を提供するインストール済みアプリケーションのレジストリがあり、利用可能な モデル のリストもアクセスできます。 このレジストリは apps と呼ばれ、 django.apps で利用できます: >>> from django.ap ... トリが完全に登録され、すべての AppConfig.ready() メソッドが呼び出された後に True に設定される真偽値属性です。 apps. get_app_configs () AppConfig インスタンスのイテラブルを返します。 apps. get_app_config ( app_label ) 与えられた app_label を持つアプリケー ...
https://man.mtool.work/django/6.1/ref/applications.html
Django 2.0 リリースノート 8089
Django 2.0 リリースノート December 2, 2017 Django 2.0 へようこそ! このリリースノートでは、 バージョン 2.0 の新機能 と、Django 1.11 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... es using a script similar to this: from django.apps import apps from django.db import connection for app in apps . get_app_configs (): for model in app . get_models ( include_auto_created = True ): if model . _meta . managed and not ( model . _meta . pr ...
https://man.mtool.work/django/6.1/releases/2.0.html
索引 7905
索引 記号 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ア | イ | ク | コ | シ | ス | テ | ハ | ヒ | フ | メ | モ | ロ | 具 | 国 | 環 | 翻 | 表 | 言 | 長 記号 -- dbshell コマン ... _alternative_name() (django.core.files.storage モジュール) (Storage のメソッド) get_app_config() (apps のメソッド) get_app_configs() (apps のメソッド) get_app_list() (AdminSite のメソッド) get_autocommit() (django.db.transaction モジュール) get_autocomp ... late.loaders のクラス) Log (django.db.models.functions のクラス) log() (DiscoverRunner のメソッド) LOGGING setting LOGGING_CONFIG setting login() (Client のメソッド) (django.contrib.auth モジュール) login_form (AdminSite の属性) login_not_required() (dj ...
https://man.mtool.work/django/6.1/genindex.html
PREV 1 NEXT