# Django

> A Python web framework. It comes with most of the parts a site needs.

**Field:** Software Development  
**Category:** Web Development  
**Also known as:** Django Framework

## Think of it like

Think of it like a house with the kitchen, locks and wires all done. You move in and add your things.

## Definition

Django is a Python web framework that comes with most of what a site needs. It has an ORM for the database, a login system, forms, templates and a ready-made admin page. Its motto is batteries included, meaning you rarely need extra parts to start. It was first released in 2005 and runs many large sites. It also guards against common attacks by default.

## Example

Emma builds a booking site in Django. In one afternoon she has a database, logins and an admin page for bookings.

## Example code

```console
$ django-admin startproject shop
```

This makes a new Django project in a folder called shop.

## Why it matters

Django gets a real, secure site running fast. It is a top choice for Python developers.

## Common mistake

Leaving DEBUG on in the live site. It shows secret settings to anyone who sees an error.

## Three principles

- **Batteries included.** Database, logins, admin, forms.
- **Python.** Clear code, big community.
- **Safe by default.** Guards against common attacks.

## Related terms

- [Flask](https://learn.benibix.com/term/development/flask)
- [Python](https://learn.benibix.com/term/development/python)
- [Object-Relational Mapping (ORM)](https://learn.benibix.com/term/development/orm)
- [Template Engine](https://learn.benibix.com/term/development/template)

## Told apart from

- [Django vs Flask](https://learn.benibix.com/compare/django-vs-flask): Django and Flask are both Python web frameworks. Django comes with most of what a site needs, from logins to an admin page. Flask gives you just the basics and you add the rest.

---

Source: https://learn.benibix.com/term/development/django
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
