Django (web framework)

Python web framework


title: "Django (web framework)" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["free-software-programmed-in-python", "python-(programming-language)-web-frameworks", "software-using-the-bsd-license", "web-frameworks"] description: "Python web framework" topic_path: "technology/web" source: "https://en.wikipedia.org/wiki/Django_(web_framework)" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0

::summary Python web framework ::

::data[format=table title="Infobox software"]

FieldValue
logoDjango logo.svgclass=skin-invert
screenshotDjango 2.1 landing page.png
screenshot altThe default Django page
authorAdrian Holovaty, Simon Willison
developerDjango Software Foundation
released
latest_release_version{{multiple releases
branch1short-term support release
version1
date1
branch2long-term support release
version2
date2
programming languagePython
genreWeb framework
license3-clause BSD
::

| name = | logo = Django logo.svgclass=skin-invert | logo caption = | logo alt = | screenshot = Django 2.1 landing page.png | caption = | screenshot alt = The default Django page | collapsible = | author = Adrian Holovaty, Simon Willison | developer = Django Software Foundation | released = | latest_release_version = {{multiple releases | branch1 = short-term support release | version1 = | date1 =

| branch2 = long-term support release | version2 = | date2 = | programming language = Python | operating system = | platform = | language = | genre = Web framework | license = 3-clause BSD Django ( ; sometimes stylized as django) is a free and open-source, Python-based web framework that runs on a web server. It follows the model–template–views (MTV) architectural pattern. It is maintained by the Django Software Foundation (DSF), an independent organization established in the US as a 501(c)(3) non-profit.

Django's primary goal is to ease the creation of complex, database-driven websites. The framework emphasizes reusability and "pluggability" of components, less code, low coupling, rapid development, and the principle of don't repeat yourself. Python is used throughout, even for settings, files, and data models. Django also provides an optional administrative create, read, update and delete interface that is generated dynamically through introspection and configured via admin models.

Some well-known sites that use Django include Instagram, Mozilla, Disqus, Bitbucket, Nextdoor, and Clubhouse.

History

Django was created in the autumn of 2003, when the web programmers at the Lawrence Journal-World newspaper, Adrian Holovaty and Simon Willison, began using Python to build applications. Jacob Kaplan-Moss was hired early in Django's development shortly before Willison's internship ended. It was released publicly under a BSD license in July 2005. The framework was named after guitarist Django Reinhardt. Holovaty is a romani jazz guitar player inspired in part by Reinhardt's music.

In June 2008, it was announced that a newly formed Django Software Foundation (DSF) would maintain Django in the future.

Features

Components

::figure[src="https://upload.wikimedia.org/wikipedia/commons/6/6d/Django_useradmin.png" caption="Screenshot of the Django admin interface for modifying a user account"] ::

Despite having its own nomenclature, such as naming the callable objects generating the HTTP responses "views", the core Django framework can be seen as an MVC architecture. It consists of an object-relational mapper (ORM) that mediates between data models (defined as Python classes) and a relational database ("Model"), a system for processing HTTP requests with a web templating system ("View"), and a regular-expression-based URL dispatcher ("Controller").

Also included in the core framework are:

  • a lightweight and standalone web server for development and testing
  • a form serialization and validation system that can translate between HTML forms and values suitable for storage in the database
  • a template system that utilizes the concept of inheritance borrowed from object-oriented programming
  • a caching framework that can use any of several cache methods
  • support for middleware classes that can intervene at various stages of request processing and carry out custom functions
  • an internal dispatcher system that allows components of an application to communicate events to each other via pre-defined signals
  • an internationalization system, including translations of Django's own components into a variety of languages
  • a serialization system that can produce and read XML and/or JSON representations of Django model instances
  • a system for extending the capabilities of the template engine
  • an interface to Python's built-in unit test framework

Bundled applications

The main Django distribution also bundles a number of applications in its "contrib" package, including:

Extensibility

Django's configuration system allows third-party code to be plugged into a regular project, provided that it follows the reusable app conventions. More than 5000 packages are available to extend the framework's original behavior, providing solutions to issues the original tool didn't tackle: registration, search, API provision and consumption, CMS, etc.

This extensibility is, however, mitigated by internal components' dependencies. While the Django philosophy implies loose coupling, the template filters and tags assume one engine implementation, and both the auth and admin bundled applications require the use of the internal ORM. None of these filters or bundled apps are mandatory to run a Django project, but reusable apps tend to depend on them, encouraging developers to keep using the official stack in order to benefit fully from the apps ecosystem.

Server arrangements

Django can be run on ASGI or WSGI-compliant web servers. Django officially supports five database backends: PostgreSQL, MySQL, MariaDB, SQLite, and Oracle. Microsoft SQL Server can be used with mssql-django.

Version history

The Django team will occasionally designate certain releases to be "long-term support" (LTS) releases. LTS releases will get security and data loss fixes applied for a guaranteed period of time, typically 3+ years, regardless of the pace of releases afterwards. ::data[format=table]

VersionRelease dateEnd of mainstream supportEnd of extended supportNotes
o0.90}}
o0.91}}
o0.95}}
o0.96}}
o1.0}}
o1.1}}
o1.2}}
o1.3}}
o1.4 LTS}}
o1.5}}
o1.6}}
o1.7}}
o1.8 LTS}}
o1.9}}
o1.10}}
o1.11 LTS}}
o2.0}}
o2.1}}
o2.2 LTS}}
o3.0}}
o3.1}}
o3.2 LTS}}April 2024
o4.0}}April 2023
o4.1}}April 2023December 2023
co4.2 LTS}}
o5.0}}
co5.1}}
co5.2 LTS}}{{dtsformat=dmy2025
c6.0}}August 2026April 2027
::

Community

DjangoCon

There is a semiannual conference for Django developers and users, named "DjangoCon", that has been held since September 2008. DjangoCon is held annually in Europe, in May or June; while another is held in the United States in August or September, in various cities.

United States

The 2012 DjangoCon took place in Washington, D.C., from September 3 to 8.

2013 DjangoCon was held in Chicago at the Hyatt Regency Hotel and the post-conference Sprints were hosted at Digital Bootcamp, computer training center.

The 2014 DjangoCon US returned to Portland, OR from August 30 to 6 September.

The 2015 DjangoCon US was held in Austin, TX from September 6 to 11 at the AT&T Executive Center.

The 2016 DjangoCon US was held in Philadelphia, PA at The Wharton School of the University of Pennsylvania from July 17 to 22.

The 2017 DjangoCon US was held in Spokane, WA; in 2018 DjangoCon US was held in San Diego, CA. DjangoCon US 2019 was held again in San Diego, CA from September 22 to 27.

DjangoCon 2021 took place virtually and in 2022, DjangoCon US returned to San Diego from October 16 to 21. DjangoCon US 2023 was held from October 16 to 20 at the Durham, NC convention center and DjangoCon US 2024 took place also in Durham in September 22 to 27.

DjangoCon US 2025 was held from September 8 to 12 in Chicago, Illinois.

Europe

The 2025 edition of DjangoCon Europe took place in Dublin, Ireland from 23 to 27 April.

In 2024, the conference was hosted in Vigo, Spain.

Edinburgh, Scotland served as the venue for DjangoCon Europe in 2023.

The 2022 conference was organized in Porto, Portugal.

In 2021, DjangoCon Europe was held virtually due to the COVID-19 pandemic.

The 2020 edition was also conducted as a fully virtual event.

DjangoCon Europe 2019 was held in Copenhagen, Denmark.

In 2018, the event took place in Heidelberg, Germany.

The 2017 conference was convened in Florence, Italy.

DjangoCon Europe 2012 was organized in Zurich, Switzerland.

Australia

Django mini-conferences are usually held every year as part of the Australian Python Conference 'PyCon AU'. Previously, these mini-conferences have been held in:

  • Hobart, Australia, in July 2013,
  • Brisbane, Australia, in August 2014 and 2015,
  • Melbourne, Australia in August 2016 and 2017, and
  • Sydney, Australia, in August 2018 and 2019.

Africa

The first DjangoCon Africa was held in Zanzibar, Tanzania, from 6 to 11 November 2023. The event hosted approximately 200 attendees from 22 countries, including 103 women. The conference featured 26 talks on topics such as software development, education, careers, accessibility, and agriculture, often highlighting perspectives from across the African continent. Future editions of the conference are planned, with details available on the official website

Community groups & programs

Django has spawned user groups and meetups around the world, a notable group is the Django Girls organization, which began in Poland but now has had events in 91 countries.

Another initiative is Djangonaut Space, a mentorship program aimed at supporting new contributors to the Django ecosystem. The program pairs experienced mentors with developers to guide them through making meaningful contributions to Django and its community. It emphasizes long-term engagement, inclusion, and collaborative open-source development.

Ports to other languages

Programmers have ported Django's template engine design from Python to other languages, providing decent cross-platform support. Some of these options are more direct ports; others, though inspired by Django and retaining its concepts, take the liberty to deviate from Django's design:

CMSs based on Django Framework

Django as a framework is capable of building a complete CMS. Some dedicated CMS projects are based upon Django:

References

Bibliography

  • {{citation | first1 = Sanjeev | last1 = Jaiswal | first2 = Ratan | last2 = Kumar | date = 22 June 2015 | title = Learning Django Web Development | edition = 1st | publisher = Packt | page = 405 | isbn = 978-1783984404
  • {{citation | first1 = Arun | last1 = Ravindrun | date = 31 March 2015 | title = Django Design Patterns and Best Practices | edition = 1st | publisher = Packt | page = 180 | isbn = 978-1783986644
  • {{citation | first1 = Tracy | last1 = Osborn | date = May 2015 | title = Hello Web App | edition = 1st | publisher = Tracy Osborn | page = 142 | isbn = 978-0986365911
  • {{citation | first1 = Aidas | last1 = Bendoraitis | date = October 2014 | title = Web Development with Django Cookbook | edition = 1st | publisher = Packt | page = 294 | isbn = 978-1783286898
  • {{citation |first1 = Peter |last1 = Baumgartner |first2 = Yann |last2 = Malet |date = 2015 |title = High Performance Django |edition = 1st |publisher = Lincoln Loop |page = 184 |isbn = 978-1508748120 |url = http://highperformancedjango.com
  • {{citation |first1 = Julia |last1 = Elman |first2 = Mark |last2 = Lavin |date = 2014 |title = Lightweight Django |edition = 1st |publisher = O'Reilly Media |page = 246 |isbn = 978-1491945940 |url = http://shop.oreilly.com/product/0636920032502.do
  • {{citation |first1 = Harry |last1 = Percival |date = 2014 |title = Test-Driven Development with Python |edition = 1st |publisher = O'Reilly Media |page = 480 |isbn = 978-1449364823 |url = http://chimera.labs.oreilly.com/books/1234000000754 |access-date = 26 October 2014 |archive-date = 16 July 2017 |archive-url = https://web.archive.org/web/20170716122916/http://chimera.labs.oreilly.com/books/1234000000754 |url-status = dead

References

  1. "django/README".
  2. "Django FAQ".
  3. "django/LICENSE".
  4. "FAQ: General - Django documentation - Django".
  5. "FAQ: General - Django documentation - Django".
  6. Adrian Holovaty, Jacob Kaplan-Moss. "The Django Book".
  7. "Design Philosophies". Django.
  8. "What Powers Instagram: Hundreds of Instances, Dozens of Technologies".
  9. "Python". Mozilla Developer Network.
  10. Robenolt, Matt. "Scaling Django to 8 Billion Page Views".
  11. "DjangoSuccessStoryBitbucket – Django".
  12. (18 August 2014). "The anti-Facebook: one in four American neighborhoods are now using this private social network".
  13. (15 August 2021). "Reining in the thundering herd ⛈ Getting to 80% CPU utilization with Django".
  14. Willison, Simon. "What is the history of the Django web framework? Why has it been described as "developed in a newsroom"?".
  15. (12 December 2023). "Review: Adrian Holovaty's Playful and Precise 'Melodic Guitar Music'". Acoustic Guitar.
  16. (17 June 2008). "Announcing the Django Software Foundation - Weblog - Django".
  17. "Security in Django". Django Project.
  18. Socol, James. (2012). "Best Basic Security Practices (Especially with Django)".
  19. "What is a reusable app? — django-reusable-app-docs 0.1.0 documentation".
  20. "Django Packages API packages list".
  21. "Design philosophies - Django documentation - Django".
  22. "Built-in template tags and filters".
  23. [https://docs.djangoproject.com/en/5.1/howto/deployment/ How to deploy Django]. Official Django documentation.
  24. "Django documentation".
  25. "Django's release process - Django documentation - Django".
  26. "Download Django - Django".
  27. "FAQ: Installation - Django documentation - Django".
  28. [https://www.djangoproject.com/weblog/2005/nov/16/firstrelease/ "Introducing Django 0.90"]. Django weblog. Retrieved 2 February 2013.
  29. [https://www.djangoproject.com/weblog/2006/jan/11/091/ "Django 0.91 released"]. Django weblog. Retrieved 2 February 2013.
  30. [https://www.djangoproject.com/weblog/2006/jul/29/095/ "Introducing Django 0.95"]. Django weblog. Retrieved 2 February 2013.
  31. [https://www.djangoproject.com/weblog/2007/mar/23/096/ "Announcing Django 0.96!"]. Django weblog. Retrieved 2 February 2013.
  32. [http://www.djangoproject.com/weblog/2008/sep/03/1/ "Django 1.0 released!"]. Django weblog. Retrieved 2 February 2013.
  33. [https://www.djangoproject.com/weblog/2009/jul/29/1-point-1/ "Django 1.1 released"]. Django weblog. Retrieved 2 February 2013.
  34. [https://www.djangoproject.com/weblog/2010/may/17/12/ "Django 1.2 released"]. Django weblog. Retrieved 2 February 2013.
  35. [https://www.djangoproject.com/weblog/2011/mar/23/13/ "Django 1.3 released"]. Django weblog. Retrieved 2 February 2013.
  36. [https://www.djangoproject.com/weblog/2012/mar/23/14/ "Django 1.4 released"]. Django weblog. Retrieved 2 February 2013.
  37. [https://www.djangoproject.com/weblog/2013/feb/26/15/ "Django 1.5 released"] Django weblog. Retrieved 27 February 2013.
  38. [https://www.djangoproject.com/weblog/2013/nov/06/django-16-released/ "Django 1.6 released"] Django weblog. Retrieved 6 November 2013.
  39. [https://www.djangoproject.com/weblog/2014/sep/02/release-17-final/ "Django 1.7 released"] Django weblog. Retrieved 4 September 2014.
  40. [https://www.djangoproject.com/weblog/2015/apr/01/release-18-final/ "Django 1.8 released"] Django weblog. Retrieved 2 April 2015.
  41. [https://www.djangoproject.com/weblog/2015/dec/01/django-19-released/ "Django 1.9 released"] Django weblog. Retrieved 1 December 2015.
  42. [https://www.djangoproject.com/weblog/2016/aug/01/django-110-released/ "Django 1.10 released"] Django weblog. Retrieved 1 August 2016.
  43. [https://www.djangoproject.com/weblog/2017/apr/04/django-111-released/ "Django 1.11 released"] Django weblog. Retrieved 4 April 2017.
  44. [https://www.djangoproject.com/weblog/2017/dec/02/django-20-released/ "Django 2.0 released"] Django weblog. Retrieved 3 December 2017.
  45. [https://www.djangoproject.com/weblog/2018/aug/01/django-21-released/ "Django 2.1 released"] Django weblog. Retrieved 2 August 2018.
  46. [https://docs.djangoproject.com/en/dev/releases/2.2/ Django 2.2 release notes]. Retrieved 1 July 2019.
  47. [https://docs.djangoproject.com/en/dev/releases/3.0/ Django 3.0 release notes]. Retrieved 2 December 2019.
  48. [https://docs.djangoproject.com/en/dev/releases/3.1/ Django 3.1 release notes]. Retrieved 5 August 2020.
  49. (6 April 2021). "Django 3.2 release notes".
  50. (7 December 2021). "Django 4.0 release notes".
  51. (3 August 2022). "Django 4.1 release notes".
  52. "Django 4.2 release notes".
  53. (4 December 2023). "Django 5.0 release notes".
  54. (7 August 2024). "Django 5.1 release notes".
  55. (2 April 2025). "Django 5.2 release notes".
  56. (December 2025). "Django 6.0 Roadmap".
  57. (3 December 2025). "Django 6.0 release notes".
  58. [http://lanyrd.com/series/djangocon-eu/ DjangoCon EU series] {{Webarchive. link. (4 March 2016 , Lanyrd.com)
  59. [http://lanyrd.com/series/djangocon-us/ DjangoCon US series] {{Webarchive. link. (2 April 2016 , Lanyrd.com)
  60. "DjangoCon". DjangoCon.
  61. "DjangoCon". DjangoCon.
  62. "DjangoCon". DjangoCon.
  63. "DjangoCon". DjangoCon.
  64. "About DjangoCon US 2023". DjangoCon US.
  65. "About DjangoCon US". DjangoCon US.
  66. US, DjangoCon. (2025-07-09). "DjangoCon US 2025".
  67. "DjangoCon Europe 2025".
  68. "DjangoCon Europe 2024".
  69. Europe, DjangoCon. "DjangoCon EU 2023 • May 29th - June 2nd 2023 • Edinburgh, Scotland".
  70. "DjangoCon Europe 2022".
  71. "DjangoCon Europe 2021".
  72. "DjangoCon Europe 2020".
  73. "Join us in Copenhagen April 10-14th 🚲 • DjangoCon Europe 2019".
  74. "DjangoCon Europe 2018".
  75. "DjangoCon Europe 2017 {{!}} Join us in Florence, April 3–7".
  76. "Home - 2012.djangocon.eu".
  77. [http://djangocon.com.au/ DjangoCon AU]. Djangocon.com.au. Retrieved on 2019-12-16.
  78. "DjangoCon Africa 2025".
  79. (9 July 2015). "Lawrence-born Django, which revolutionized website construction, celebrating its 10th anniversary". [[Lawrence Journal-World]].
  80. "Django Girls - start your journey with programming".
  81. "Django groups".
  82. "Djangonaut Space - Where contributors launch!".
  83. Shopify. "– Liquid template language".
  84. "Template::Swig - Perl interface to Django-inspired Swig templating engine. - metacpan.org".
  85. Symfony. "Home - Twig - The flexible, fast, and secure PHP template engine".
  86. "twigjs/twig.js".
  87. "Welcome - Jinja2 (The Python Template Engine)".
  88. "erlydtl/erlydtl".
  89. "django CMS - Enterprise Content Management with Django - django CMS".

::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::

free-software-programmed-in-pythonpython-(programming-language)-web-frameworkssoftware-using-the-bsd-licenseweb-frameworks