{"title":"FAQ: Installation","version":"3.2","locale":"en","docname":"faq/install","url":"/en/3.2/faq/install/","canonical":"https://djangodocs.dev/en/3.2/faq/install/","summary":"How do I get started? Link to this heading # Download the code . Install Django (read the installation guide ). Walk through the tutorial . Check out the rest of…","html":"<h1>FAQ: Installation<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>How do I get started?<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>Install Django (read the <a class=\"reference internal\" href=\"/en/3.2/intro/install/\"><span class=\"doc\">installation guide</span></a>).</p></li>\n<li><p>Walk through the <a class=\"reference internal\" href=\"/en/3.2/intro/tutorial01/\"><span class=\"doc\">tutorial</span></a>.</p></li>\n<li><p>Check out the rest of the <a class=\"reference internal\" href=\"/en/3.2/\"><span class=\"doc\">documentation</span></a>, and <a class=\"reference external\" href=\"https://www.djangoproject.com/community/\">ask questions</a> if you\nrun into trouble.</p></li>\n</ol>\n</section>\n<section id=\"what-are-django-s-prerequisites\">\n<h2>What are Django’s prerequisites?<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 requires Python. See the table in the next question for the versions of\nPython that work with each version of Django. Other Python libraries may be\nrequired for some use cases, but you’ll receive an error about them as they’re\nneeded.</p>\n<p>For a development environment – if you just want to experiment with Django –\nyou don’t need to have a separate Web server installed or database server.</p>\n<p>Django comes with its own <a class=\"reference internal\" href=\"/en/3.2/ref/django-admin/#django-admin-runserver\"><code class=\"xref std std-djadmin docutils literal notranslate\"><span class=\"pre\">lightweight</span> <span class=\"pre\">development</span> <span class=\"pre\">server</span></code></a>.\nFor a production environment, Django follows the WSGI spec, <span class=\"target\" id=\"index-0\"></span><a class=\"pep reference external\" href=\"https://peps.python.org/pep-3333/\"><strong>PEP 3333</strong></a>, which\nmeans it can run on a variety of web servers. See <a class=\"reference internal\" href=\"/en/3.2/howto/deployment/\"><span class=\"doc\">Deploying Django</span></a> for more information.</p>\n<p>Django runs <a class=\"reference external\" href=\"https://www.sqlite.org/\">SQLite</a> by default, which is included in Python installations.\nFor a production environment, we recommend <a class=\"reference external\" href=\"https://www.postgresql.org/\">PostgreSQL</a>; but we also officially\nsupport <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>, and <a class=\"reference external\" href=\"https://www.oracle.com/\">Oracle</a>. See <a class=\"reference internal\" href=\"/en/3.2/ref/databases/\"><span class=\"doc\">Supported Databases</span></a> for more information.</p>\n</section>\n<section id=\"what-python-version-can-i-use-with-django\">\n<span id=\"faq-python-version-support\"></span><h2>What Python version can I use with 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 version</p></th>\n<th class=\"head\"><p>Python versions</p></th>\n</tr>\n</thead>\n<tbody>\n<tr class=\"row-even\"><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-odd\"><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-even\"><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<tr class=\"row-odd\"><td><p>3.2</p></td>\n<td><p>3.6, 3.7, 3.8, 3.9, 3.10 (added in 3.2.9)</p></td>\n</tr>\n</tbody>\n</table>\n</div>\n<p>For each version of Python, only the latest micro release (A.B.C) is officially\nsupported. You can find the latest micro version for each series on the <a class=\"reference external\" href=\"https://www.python.org/downloads/\">Python\ndownload page</a>.</p>\n<p>Typically, we will support a Python version up to and including the first\nDjango LTS release whose security support ends after security support for that\nversion of Python ends. For example, Python 3.3 security support ended\nSeptember 2017 and Django 1.8 LTS security support ended April 2018. Therefore\nDjango 1.8 is the last version to support Python 3.3.</p>\n</section>\n<section id=\"what-python-version-should-i-use-with-django\">\n<h2>What Python version should I use with Django?<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>Since newer versions of Python are often faster, have more features, and are\nbetter supported, the latest version of Python 3 is recommended.</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>Should I use the stable version or development version?<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>Generally, if you’re using code in production, you should be using a\nstable release. The Django project publishes a full stable release\nevery nine months or so, with bugfix updates in between. These stable\nreleases contain the API that is covered by our backwards\ncompatibility guarantees; if you write code against stable releases,\nyou shouldn’t have any problems upgrading when the next official\nversion is released.</p>\n</section>","rootId":"faq-installation","toc":[{"title":"How do I get started?","anchor":"how-do-i-get-started","children":[]},{"title":"What are Django’s prerequisites?","anchor":"what-are-django-s-prerequisites","children":[]},{"title":"What Python version can I use with Django?","anchor":"what-python-version-can-i-use-with-django","children":[]},{"title":"What Python version should I use with Django?","anchor":"what-python-version-should-i-use-with-django","children":[]},{"title":"Should I use the stable version or development version?","anchor":"should-i-use-the-stable-version-or-development-version","children":[]}],"breadcrumbs":[{"docname":"faq/index","title":"Django FAQ","url":"/en/3.2/faq/"}],"prev":{"docname":"faq/general","title":"FAQ: General","url":"/en/3.2/faq/general/"},"next":{"docname":"faq/usage","title":"FAQ: Using Django","url":"/en/3.2/faq/usage/"},"formats":{"html":"/en/3.2/faq/install/","markdown":"/en/3.2/faq/install.md","json":"/en/3.2/faq/install.json"},"source":"https://github.com/django/django/blob/stable/3.2.x/docs/faq/install.txt","official":"https://docs.djangoproject.com/en/3.2/faq/install/","inVersions":["dev","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","1.8"],"inLocales":["en","zh-hans","fr","ja","id","it","pt-br","ko","es","el","pl"]}