Skip to content
BENIBIX Learn

Django

Development🌐 Web DevelopmentFrameworks

Also known as Django Framework

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

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.

Example

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

Why it matters

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

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 code

console
$ django-admin startproject shop
This makes a new Django project in a folder called shop.

Common mistake

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

Key takeaways

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

Compare