{"title":"FAQ: インストール","version":"5.1","locale":"ja","docname":"faq/install","url":"/ja/5.1/faq/install/","canonical":"https://djangodocs.dev/ja/5.1/faq/install/","summary":"まずは何をすればよいですか？ Link to this heading # コードをダウンロード Download the code してください。 Django をインストールしてください ( インストールガイド を読みましょう)。 チュートリアル を一通りやってみてください。 他の ドキュメント…","html":"<h1>FAQ: インストール<a class=\"heading-anchor\" href=\"#faq-installation\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<section id=\"how-do-i-get-started\">\n<h2>まずは何をすればよいですか？<a class=\"heading-anchor\" href=\"#how-do-i-get-started\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<ol class=\"arabic simple\">\n<li><p>コードをダウンロード <a class=\"reference external\" href=\"https://www.djangoproject.com/download/\">Download the code</a> してください。</p></li>\n<li><p>Django をインストールしてください ( <a class=\"reference internal\" href=\"/ja/5.1/intro/install/\"><span class=\"doc\">インストールガイド</span></a> を読みましょう)。</p></li>\n<li><p><a class=\"reference internal\" href=\"/ja/5.1/intro/tutorial01/\"><span class=\"doc\">チュートリアル</span></a> を一通りやってみてください。</p></li>\n<li><p>他の  <a class=\"reference internal\" href=\"/ja/5.1/\"><span class=\"doc\">ドキュメント</span></a> にも目を通して下さい。何か問題が起きたら、 質問 <a class=\"reference external\" href=\"https://www.djangoproject.com/community/\">ask questions</a> してみましょう。</p></li>\n</ol>\n</section>\n<section id=\"what-are-django-s-prerequisites\">\n<h2>Django を動かすには何が必要ですか？<a class=\"heading-anchor\" href=\"#what-are-django-s-prerequisites\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>DjangoにはPythonが必要です。 Djangoの各バージョンで動作するPythonのバージョンについては、次の質問の表を参照してください。 いくつかの用途では他のPythonライブラリが必要かもしれませんが、必要に応じてエラーが表示されます。</p>\n<p>あなたが Django を用いた実験をしたい場合、開発環境専用にウェブサーバーをインストールしたり、データベース・サーバーを用意する必要はありません。</p>\n<p>Django には <a class=\"reference internal\" href=\"/ja/5.1/ref/django-admin/#django-admin-runserver\"><code class=\"xref std std-djadmin docutils literal notranslate\"><span class=\"pre\">軽量な開発用サーバー</span></code></a> が付属しています。本番環境に対しては、Django は WSGI の仕様である <span class=\"target\" id=\"index-2\"></span><a class=\"pep reference external\" href=\"https://peps.python.org/pep-3333/\"><strong>PEP 3333</strong></a> に従っているため、様々なウェブサーバーで運用環境を構築できます。詳しくは、 <a class=\"reference internal\" href=\"/ja/5.1/howto/deployment/\"><span class=\"doc\">Django をデプロイする</span></a> を参照してください。</p>\n<p>デフォルトでは、Django は Python のインストールに含まれている <a class=\"reference external\" href=\"https://www.sqlite.org/\">SQLite</a> を実行します。本番環境では <a class=\"reference external\" href=\"https://www.postgresql.org/\">PostgreSQL</a> をおすすめしていますが、 <a class=\"reference external\" href=\"https://mariadb.org/\">MariaDB</a> 、 <a class=\"reference external\" href=\"https://www.mysql.com/\">MySQL</a> 、 <a class=\"reference external\" href=\"https://www.sqlite.org/\">SQLite</a> 、 <a class=\"reference external\" href=\"https://www.oracle.com/\">Oracle</a> に対する公式サポートも提供しています。詳しくは、 <a class=\"reference internal\" href=\"/ja/5.1/ref/databases/\"><span class=\"doc\">サポートするデータベース</span></a> を参照してください。</p>\n</section>\n<section id=\"what-python-version-can-i-use-with-django\">\n<span id=\"faq-python-version-support\"></span><h2>どのバージョンの Python で Django が使えますか?<a class=\"heading-anchor\" href=\"#what-python-version-can-i-use-with-django\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<div class=\"table-scroll\" role=\"region\" tabindex=\"0\" aria-label=\"Table\"><table class=\"docutils align-default\">\n<thead>\n<tr class=\"row-odd\"><th class=\"head\"><p>Django バージョン</p></th>\n<th class=\"head\"><p>Python バージョン</p></th>\n</tr>\n</thead>\n<tbody>\n<tr class=\"row-even\"><td><p>3.2</p></td>\n<td><p>3.6、3.7、3.8、3.9、3.10（3.2.9で追加）</p></td>\n</tr>\n<tr class=\"row-odd\"><td><p>4.0</p></td>\n<td><p>3.8, 3.9, 3.10</p></td>\n</tr>\n<tr class=\"row-even\"><td><p>4.1</p></td>\n<td><p>3.8, 3.9, 3.10, 3.11 (4.1.3で追加)</p></td>\n</tr>\n<tr class=\"row-odd\"><td><p>4.2</p></td>\n<td><p>3.8、3.9、3.10、3.11、3.12（4.2.8で追加）</p></td>\n</tr>\n<tr class=\"row-even\"><td><p>5.0</p></td>\n<td><p>3.10、3.11、3.12</p></td>\n</tr>\n<tr class=\"row-odd\"><td><p>5.1</p></td>\n<td><p>3.10, 3.11, 3.12, 3.13 (5.1.3 で追加)</p></td>\n</tr>\n</tbody>\n</table>\n</div>\n<p>Pythonの各バージョンでは、最新のマイクロリリース (A.B.C) のみが正式にサポートされています。 <a class=\"reference external\" href=\"https://www.python.org/downloads/\">Pythonのダウンロードページ</a> で、各シリーズの最新のマイクロバージョンを見つけることができます。</p>\n<p>We will support a Python version up to and including the first Django LTS\nrelease whose security support ends after security support for that version of\nPython ends. For example, Python 3.9 security support ends in October 2025 and\nDjango 4.2 LTS security support ends in April 2026. Therefore Django 4.2 is the\nlast version to support Python 3.9.</p>\n</section>\n<section id=\"what-python-version-should-i-use-with-django\">\n<h2>DjangoでどのPythonのバージョンを使用すべきですか？<a class=\"heading-anchor\" href=\"#what-python-version-should-i-use-with-django\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>新しいバージョンの Python はより高速で、多くの機能があり、サポートされているので、 Python 3 の中でも最新バージョンを推奨します。</p>\n<p>古いリリースの Django を使うことで何も失うことはありませんが、新しい Python のリリースでの改良と最適化を活用できません。Django で使用するサードパーティ製アプリケーションは、独自のバージョン要件を自由に設定することができます。</p>\n</section>\n<section id=\"should-i-use-the-stable-version-or-development-version\">\n<h2>安定版と開発版のどちらを使うべきなのでしょうか？<a class=\"heading-anchor\" href=\"#should-i-use-the-stable-version-or-development-version\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>一般的に、もしあなたがコードを本番で使っているのなら、安定版を使うべきでしょう。 Django はおよそ 8 ヶ月ごとに、バグフィックスを含めた安定版をリリースしています。これらの安定版は後方互換性を保証した API も提供していますので、もし次の新しい安定版では使用できないコードを書いていても、アップグレードにおいて問題はないはずです。</p>\n</section>","rootId":"faq-installation","toc":[{"title":"まずは何をすればよいですか？","anchor":"how-do-i-get-started","children":[]},{"title":"Django を動かすには何が必要ですか？","anchor":"what-are-django-s-prerequisites","children":[]},{"title":"どのバージョンの Python で Django が使えますか?","anchor":"what-python-version-can-i-use-with-django","children":[]},{"title":"DjangoでどのPythonのバージョンを使用すべきですか？","anchor":"what-python-version-should-i-use-with-django","children":[]},{"title":"安定版と開発版のどちらを使うべきなのでしょうか？","anchor":"should-i-use-the-stable-version-or-development-version","children":[]}],"breadcrumbs":[{"docname":"faq/index","title":"Django FAQ よくある質問","url":"/ja/5.1/faq/"}],"prev":{"docname":"faq/general","title":"FAQ: 一般的な質問","url":"/ja/5.1/faq/general/"},"next":{"docname":"faq/usage","title":"FAQ: Django を使う","url":"/ja/5.1/faq/usage/"},"formats":{"html":"/ja/5.1/faq/install/","markdown":"/ja/5.1/faq/install.md","json":"/ja/5.1/faq/install.json"},"source":"https://github.com/django/django/blob/stable/5.1.x/docs/faq/install.txt","official":"https://docs.djangoproject.com/ja/5.1/faq/install/","inVersions":["6.1","6.0","5.2","5.1","5.0","4.2","4.1","4.0","3.2","3.1","3.0","2.2","2.1","2.0","1.11","1.10","1.9"],"inLocales":["en","zh-hans","fr","ja","id","it","pt-br","ko","es","el","pl"]}