How to get Django

Django is available open-source under theBSD license. We recommend using the latest version of Python 3. The last version to support Python 2.7 is Django 1.11 LTS. See the FAQ for the Python versions supported by each version of Django. Here’s how to get it:

Option 1: Get the latest official version

The latest official version is 4.2.2 (LTS). Read the4.2.2 release notes, then install it withpip:

pip install Django==4.2.2

Option 2: Get the latest development version

The latest and greatest Django version is the one that’s in our Git repository (our revision-control system). This is only for experienced users who want to try incoming changes and help identify bugs before an official release. Get it using this shell command, which requiresGit:

git clone https://github.com/django/django.git

You can also download a gzipped tarball of the development version. This archive is updated every time we commit code.

After you get it

See theinstallation guide for further instructions. Make sure you read the documentation that corresponds to the version of Django you’ve just installed.

And be sure to sign up for thedjango-users mailing list, where other Django users and the Django developers themselves all hang out to help each other.

Supported Versions

Feature releases (A.B, A.B+1, etc.) will happen roughly every eight months. These releases will contain new features, improvements to existing features, and such.

Patch releases (A.B.C, etc.) will be issued as needed, to fix bugs and/or security issues. These releases will be 100% compatible with the associated feature release, unless this is impossible for security reasons or to prevent data loss. So the answer to "should I upgrade to the latest patch release?” will always be "yes."

Certain feature releases will be designated aslong-term support (LTS) releases. These releases will get security and data loss fixes applied for a guaranteed period of time, typically three years.

See the supported versions policy for detailed guidelines about what fixes will be backported.

Django release roadmap
Release SeriesLatest ReleaseEnd of mainstream support1End of extended support2
4.2 LTS4.2.2December 2023April 2026
4.14.1.9April 5, 2023December 2023
3.2 LTS3.2.19December 7, 2021April 2024

Future Roadmap

Release SeriesRelease DateEnd of mainstream support1End of extended support2
6.0December 2025August 2026April 2027
5.2 LTSApril 2025December 2025April 2028
5.1August 2024April 2025December 2025
5.0December 2023August 2024April 2025

Unsupported previous releases

These release series no longer receive security updates or bug fixes.

Release SeriesLatest ReleaseEnd of mainstream support1End of extended support2
4.04.0.10August 3, 2022April 1, 2023
3.13.1.14April 6, 2021December 7, 2021
3.03.0.14August 3, 2020April 6, 2021
2.2 LTS2.2.28December 2, 2019April 11, 2022
2.12.1.15April 1, 2019December 2, 2019
2.02.0.13August 1, 2018April 1, 2019
1.11 LTS31.11.29December 2, 2017April 1, 2020
1.101.10.8April 4, 2017December 2, 2017
1.91.9.13August 1, 2016April 4, 2017
1.8 LTS1.8.19December 1, 2015April 1, 2018
1.71.7.11April 1, 2015December 1, 2015
1.61.6.11September 2, 2014April 1, 2015
1.51.5.12November 6, 2013September 2, 2014
1.4 LTS1.4.22February 26, 2013October 1, 2015
1.31.3.7March 23, 2012February 26, 2013

[1] Security fixes, data loss bugs, crashing bugs, major functionality bugs in newly-introduced features, and regressions from older versions of Django.
[2] Security fixes and data loss bugs.
[3] Last version to support Python 2.7.

Back to Top