{"title":"FAQ: インストール","version":"3.1","locale":"ja","docname":"faq/install","url":"/ja/3.1/faq/install/","canonical":"https://djangodocs.dev/ja/3.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/3.1/intro/install/\"><span class=\"doc\">インストールガイド</span></a> を読みましょう)。</p></li>\n<li><p><a class=\"reference internal\" href=\"/ja/3.1/intro/tutorial01/\"><span class=\"doc\">チュートリアル</span></a> を一通りやってみてください。</p></li>\n<li><p>他の  <a class=\"reference internal\" href=\"/ja/3.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 には:djadmin:軽量な開発用サーバー&lt;runserver&gt;`が付属しています。本番環境に対しては、Django は WSGI の仕様である :pep:`3333 に従っているため、様々なウェブサーバーで運用環境を構築できます。詳しくは、:doc:<a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>Django をデプロイする &lt;/howto/deployment/index&gt;`を参照してください。</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> に対する公式サポートも提供しています。詳しくは、:doc:<a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>サポートするデータベース &lt;/ref/databases&gt;`を参照してください。</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>1.11</p></td>\n<td><p>2.7、3.4、3.5、3.6、3.7 (1.11.17 で追加)</p></td>\n</tr>\n<tr class=\"row-odd\"><td><p>2.0</p></td>\n<td><p>3.4、3.5、3.6、3.7</p></td>\n</tr>\n<tr class=\"row-even\"><td><p>2.1</p></td>\n<td><p>3.5、3.6、3.7</p></td>\n</tr>\n<tr class=\"row-odd\"><td><p>2.2</p></td>\n<td><p>3.5, 3.6, 3.7, 3.8 (added in 2.2.8), 3.9 (added in 2.2.17)</p></td>\n</tr>\n<tr class=\"row-even\"><td><p>3.0</p></td>\n<td><p>3.6, 3.7, 3.8, 3.9 (added in 3.0.11)</p></td>\n</tr>\n<tr class=\"row-odd\"><td><p>3.1</p></td>\n<td><p>3.6, 3.7, 3.8, 3.9 (added in 3.1.3)</p></td>\n</tr>\n</tbody>\n</table>\n</div>\n<p>Pythonの各バージョンでは、最新のマイクロリリース (A.B.C) のみが正式にサポートされています。 <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>Pythonのダウンロードページ &lt;<a class=\"reference external\" href=\"https://www.python.org/downloads/\">https://www.python.org/downloads/</a>&gt; <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>_ で、各シリーズの最新のマイクロバージョンを見つけることができます。</p>\n<p>通常は、Python のバージョンのセキュリティサポートが終了した後にセキュリティサポートが終了する最初の Django LTS リリースまでの Python バージョンをサポートします。 たとえば、Python 3.3 のセキュリティサポートは2017年9月に終了し、Django 1.8 LTSのセキュリティサポートは2018年4月に終了します。したがって、Django 1.8 が Python 3.3 をサポートする最後のバージョンです。</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 3 を推奨します。 Django 1.11 は Python 2.7 をサポートする最後のバージョンです。 Python 2.7 および Django 1.11 は 2020年にサポート終了します。</p>\n<p>新しいバージョンの Python はより高速で、多くの機能があり、サポートされているので、 Python 3 の中でも最新バージョンを推奨します。</p>\n<p>You don't lose anything in Django by using an older release, but you don't take\nadvantage of the improvements and optimizations in newer Python releases.\nThird-party applications for use with Django are free to set their own version\nrequirements.</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 はおよそ 9 ヶ月ごとに、バグフィックスを含めた安定版をリリースしています。これらの安定版は後方互換性を保証した 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/3.1/faq/"}],"prev":{"docname":"faq/general","title":"FAQ: 一般的な質問","url":"/ja/3.1/faq/general/"},"next":{"docname":"faq/usage","title":"FAQ: Django を使う","url":"/ja/3.1/faq/usage/"},"formats":{"html":"/ja/3.1/faq/install/","markdown":"/ja/3.1/faq/install.md","json":"/ja/3.1/faq/install.json"},"source":"https://github.com/django/django/blob/stable/3.1.x/docs/faq/install.txt","official":"https://docs.djangoproject.com/ja/3.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","pt-br","ko","es","el","pl"]}