{"title":"FAQ: Installation","version":"1.9","locale":"en","docname":"faq/install","url":"/en/1.9/faq/install/","canonical":"https://djangodocs.dev/en/1.9/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/1.9/intro/install/\"><span class=\"doc\">installation guide</span></a>).</p></li>\n<li><p>Walk through the <a class=\"reference internal\" href=\"/en/1.9/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/1.9/\"><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 uses, but you’ll receive an error about it as they’re needed.</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; Django comes with its\nown lightweight development server. For a production environment, Django follows\nthe 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 means it can run on a variety of server\nplatforms. See <a class=\"reference internal\" href=\"/en/1.9/howto/deployment/\"><span class=\"doc\">Deploying Django</span></a> for some\npopular alternatives.</p>\n<p>If you want to use Django with a database, which is probably the case, you’ll\nalso need a database engine. <a class=\"reference external\" href=\"http://www.postgresql.org/\">PostgreSQL</a> is recommended, because we’re\nPostgreSQL fans, and <a class=\"reference external\" href=\"https://www.mysql.com/\">MySQL</a>, <a class=\"reference external\" href=\"https://www.sqlite.org/\">SQLite 3</a>, and <a class=\"reference external\" href=\"http://www.oracle.com/\">Oracle</a> are also supported.</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>1.8</p></td>\n<td><p>2.7, 3.2 (until the end of 2016), 3.3, 3.4, 3.5</p></td>\n</tr>\n<tr class=\"row-odd\"><td><p><strong>1.9, 1.10</strong></p></td>\n<td><p><strong>2.7, 3.4, 3.5</strong></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 ends September\n2017 and Django 1.8 LTS security support ends April 2018. Therefore Django 1.8\nis 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>As of Django 1.6, Python 3 support is considered stable and you can safely use\nit in production. See also <a class=\"reference internal\" href=\"/en/1.9/topics/python3/\"><span class=\"doc\">Porting to Python 3</span></a>. However, the community is\nstill in the process of migrating third-party packages and applications to\nPython 3.</p>\n<p>If you’re starting a new project, and the dependencies you plan to use work on\nPython 3, you should use Python 3. If they don’t, consider contributing to the\nporting efforts, or stick to Python 2.</p>\n<p>Since newer versions of Python are often faster, have more features, and are\nbetter supported, all else being equal, we recommend that you use the latest\n2.x.y or 3.x.y release.</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, of course, free to set their\nown version requirements.</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/1.9/faq/"}],"prev":{"docname":"faq/general","title":"FAQ: General","url":"/en/1.9/faq/general/"},"next":{"docname":"faq/usage","title":"FAQ: Using Django","url":"/en/1.9/faq/usage/"},"formats":{"html":"/en/1.9/faq/install/","markdown":"/en/1.9/faq/install.md","json":"/en/1.9/faq/install.json"},"source":"https://github.com/django/django/blob/stable/1.9.x/docs/faq/install.txt","official":"https://docs.djangoproject.com/en/1.9/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","fr","ja","id","pt-br","es"]}