... rs 以下のように、本番用の設定ファイルにのみ関係する「デプロイメントチェック」を登録できます: @register ( Tags . security , deploy = True ) def my_check ( app_configs , ** kwargs ): ... これらのチェックが行われるのは、 check --deploy オプションが使用され ... 下記のコードは上記のコードと等価です: def my_check ( app_configs , ** kwargs ): ... register ( my_check , Tags . security , deploy = True ) Field, constraint, model, manager, template engine, task, and database checks 場合によっては、チェック機能を登録す ... を考えてみましょう: from django.conf import settings from django.core.checks import Warning , register @register ( "myapp" , deploy = True ) def check_enable_analytics_is_true_on_deploy ( app_configs , ** kwargs ): errors = [] if getattr ( settings , "EN ... ... ンの 静的ファイル をどのように扱うか、そして エラーレポート をどのように扱うかも考慮する必要があります。 Finally, before you deploy your application to production, you should run through our deployment checklist to ensure that your configurations are sui ... 使う application オブジェクト Settings モジュールを設定する ASGI ミドルウェアの適用 デプロイチェックリスト manage.py check --deploy を実施しよう manage.py runserver から切り替える 最重要な設定 環境に合わせた設定 HTTPS パフォーマンスの最適化 エラーのレポー ... ... L_HEADER , if it is configured, and the appropriate header is set on the request, for both HTTP and HTTPS requests. If you deploy Django behind a reverse-proxy that forwards HTTP requests, and that connects to Django via HTTPS, be sure to verify that y ... ... L_HEADER , if it is configured, and the appropriate header is set on the request, for both HTTP and HTTPS requests. If you deploy Django behind a reverse-proxy that forwards HTTP requests, and that connects to Django via HTTPS, be sure to verify that y ... ... ting via HTTPS When deployed behind a reverse-proxy connecting to Django via HTTPS, django.http.HttpRequest.scheme would incorrectly detect client re ... L_HEADER , if it is configured, and the appropriate header is set on the request, for both HTTP and HTTPS requests. If you deploy Django behind a reverse-proxy that forwards HTTP requests, and that connects to Django via HTTPS, be sure to verify that y ... ... る場合、開発用の適切な設定を公開し、本番用にはプライベートな設定モジュールを使用するのが一般的な慣習です。 manage.py check --deploy を実施しよう 以下で説明しているチェックのいくつかは、 check --deploy オプションを使用して自動化できます。オプションのドキュ ... ... MAILERS setting uses a development-only email backend in the 'default' entry ( <backend> ). (Only checked when the check --deploy option is used.) mail.W001 : Your MAILERS setting has no 'default' entry. Sending email without a valid mailer will fail. ... 常に警告されるのはイライラするでしょう。 SILENCED_SYSTEM_CHECKS を使って、不要なチェックを行わないようにしましょう。 check --deploy オプションを使用すると、以下のチェックが実行されます: security.W001 : MIDDLEWARE に django.middleware.security.SecurityMid ... ... ase default --database other デフォルトでは、これらのチェックは実行されません。 --list-tags 利用可能なタグを一覧します。 --deploy デプロイメントの設定にだけ関係のある、いくつかの追加チェックを有効化します。 このオプションはローカルの開発環境で使えますが ... 境変数を設定するか、 --settings オプションを渡すことで、異なる設定モジュールを指定したくなるでしょう。 django-admin check --deploy --settings=production_settings あるいは、( --settings を省略して) 正しい設定が使用されていることを検証するために、本番かス ... or ASGI server instead. For more information on production servers see: https://docs.djangoproject.com/en/|version|/howto/deployment/ 警告を非表示にする場合、この環境変数を "true" に設定します。 異なるポートとアドレスを使用する場合の引数例 IP アドレス ... ... t コマンドラインオプション --decimal ogrinspect コマンドラインオプション --default diffsettings コマンドラインオプション --deploy check コマンドラインオプション --domain makemessages コマンドラインオプション --dry-run collectstatic コマンドラインオプシ ... charset (HttpResponse の属性) (UploadedFile の属性) check django-admin command check コマンドラインオプション --database --deploy --fail-level --list-tags --tag -t check() (BaseCommand のメソッド) check_for_language() (django.utils.translation モジュー ... ... e importable from django.contrib.sites.models . FastCGI support via the runfcgi management command will be removed. Please deploy your project using WSGI. django.utils.datastructures.SortedDict will be removed. Use collections.OrderedDict from the Pyth ... 2026年10月08日