---
title: "Djangoをデプロイするには"
version: 4.2
locale: ja
source: https://docs.djangoproject.com/ja/4.2/howto/deployment/
canonical: https://djangodocs.dev/ja/4.2/howto/deployment/
---
# Djangoをデプロイするには

Django にある非常に多くのショートカットはWeb開発者を楽にしてくれますが、サイトをかんたんにデプロイできなければ、これらのツールのどれも役に立ちません。 当初より Django は、デプロイのしやすさを大きな目標としてきました。

There are many options for deploying your Django application, based on your
architecture or your particular business needs, but that discussion is outside
the scope of what Django can give you as guidance.

Django は Web フレームワークなので、動作させるには Web サーバが必要です。そして、ほとんどの Web サーバはネイティブでは Python を使用しないので、通信を実現するためのインターフェイスが必要です。

Djangoは現在、WSGIとASGIの2つのインターフェースをサポートしています。

- WSGI\`\_はウェブサーバーとアプリケーション間で通信するためのPythonの主要な規格です。ただし、同期的なコードしかサポートしていません。
- [ASGI](https://asgi.readthedocs.io/en/latest/) は、Django サイトで非同期の Python 機能と非同期の Django 機能を使えるようにするための、新しい非同期フレンドリーな標準です。

You should also consider how you will handle [static files](/ja/4.2/howto/static-files/deployment/) for your application, and how to handle
[error reporting](/ja/4.2/howto/error-reporting/).

Finally, before you deploy your application to production, you should run
through our [deployment checklist](/ja/4.2/howto/deployment/checklist/) to ensure that your
configurations are suitable.

- [WSGI とともにデプロイするには](/ja/4.2/howto/deployment/wsgi/)

  - [Django を Gunicorn とともに使う](/ja/4.2/howto/deployment/wsgi/gunicorn/)
  - [Django を uWSGI とともに使うには？](/ja/4.2/howto/deployment/wsgi/uwsgi/)
  - [Django を Apache と `mod_wsgi` とともに使うには？](/ja/4.2/howto/deployment/wsgi/modwsgi/)
  - [Django のユーザーデータベースに対する Apache からの認証](/ja/4.2/howto/deployment/wsgi/apache-auth/)
  - [`application` オブジェクト](/ja/4.2/howto/deployment/wsgi/#the-application-object)
  - [Settings モジュールを設定する](/ja/4.2/howto/deployment/wsgi/#configuring-the-settings-module)
  - [Applying WSGI middleware](/ja/4.2/howto/deployment/wsgi/#applying-wsgi-middleware)
- [ASGIでデプロイする](/ja/4.2/howto/deployment/asgi/)

  - [Django を Daphne とともに使う](/ja/4.2/howto/deployment/asgi/daphne/)
  - [Django を Hypercorn とともに使う](/ja/4.2/howto/deployment/asgi/hypercorn/)
  - [Django を Uvicorn とともに使う](/ja/4.2/howto/deployment/asgi/uvicorn/)
  - [`application` オブジェクト](/ja/4.2/howto/deployment/asgi/#the-application-object)
  - [Settings モジュールを設定する](/ja/4.2/howto/deployment/asgi/#configuring-the-settings-module)
  - [ASGI ミドルウェアの適用](/ja/4.2/howto/deployment/asgi/#applying-asgi-middleware)
- [デプロイチェックリスト](/ja/4.2/howto/deployment/checklist/)

  - [`manage.py check --deploy` を実施しよう](/ja/4.2/howto/deployment/checklist/#run-manage-py-check-deploy)
  - [最重要な設定](/ja/4.2/howto/deployment/checklist/#critical-settings)
  - [環境に合わせた設定](/ja/4.2/howto/deployment/checklist/#environment-specific-settings)
  - [HTTPS](/ja/4.2/howto/deployment/checklist/#https)
  - [パフォーマンスの最適化](/ja/4.2/howto/deployment/checklist/#performance-optimizations)
  - [エラーのレポート](/ja/4.2/howto/deployment/checklist/#error-reporting)
