Django (web framework)

Django (/ˈdʒæŋɡoʊ/ JANG-goh; sometimes stylized as django)[8] is a Python-based free and open-source web framework that follows the model-template-views (MTV) architectural pattern.[9][10] It is maintained by the Django Software Foundation (DSF), an American independent organization established 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.[11] 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 PBS,[12] Instagram,[13] Mozilla,[14] The Washington Times,[15] Disqus,[16] Bitbucket,[17] and Nextdoor.[18]

History

Django was created in the fall 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 Simon Willison’s internship ended.[19] It was released publicly under a BSD license in July 2005. The framework was named after guitarist Django Reinhardt.[20] Adrian Holovaty is a Romani jazz guitar player and a big fan of Django Reinhardt.

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

Features

Components

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”,[9] the core Django framework can be seen as an MVC architecture.[10] 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
  • 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
  • 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:

Share

Leave a Reply

Your email address will not be published. Required fields are marked *

Welcome

eDataPay handle direct Mids merchant account for merchants and Sub Merchants underwriting process, Risk Management, Gateway and eCommerce API integrations work and design relieving acquirers from the need to perform related administrative procedures.

Search

Related Post

Django (web framework)

Django (/ˈdʒæŋɡoʊ/ JANG-goh; sometimes stylized as django)[8] is a Python-based free and open-source web framework that follows the model-template-views (MTV) architectural pattern.[9][10] It is maintained by the Django Software Foundation (DSF), an American independent organization established as

Read More »

What Is a REST API?

API 101: What Is a REST API?   By Kin Lane August 28, 2020Reading Time: 3 minutes REpresentational State Transfer (REST) is a software architectural style that developers apply

Read More »