The web framework for perfectionists with deadlines.

Django makes it easier to build better web apps more quickly and with less code. A high-level Python web framework that encourages rapid development and clean, pragmatic design.

bash
pip install django
django-admin startproject mysite
cd mysite
python manage.py runserver

See Django in Action

Experience the power of Django with this simple example. From zero to a working web application in just a few commands.

1

Create your project

Start a new Django project with a single command

2

Define your models

Create your data structure with Python classes

3

Run your app

Launch your web application instantly

python
# models.py
from django.db import models

class Blog(models.Model):
  title = models.CharField(max_length=200)
  content = models.TextField()
  created_at = models.DateTimeField(auto_now_add=True)

# views.py
from django.shortcuts import render
from .models import Blog

def blog_list(request):
  blogs = Blog.objects.all()
  return render(request, 'blog/list.html', {'blogs': blogs})

Batteries included

Django follows Python's "batteries-included" philosophy. The framework comes with a rich set of built-in features that handle common web development tasks, so you can focus on writing your app instead of reinventing the wheel.

    Object-Relational Mapper

    Define your data models entirely in Python. Django's ORM provides a rich, dynamic database-access API — but you can still write SQL if needed.

    Authentication System

    Full-featured and secure authentication system with user accounts, groups, permissions, and cookie-based sessions built right in.

    Template Engine

    Django's template language is designed to strike a balance between power and ease. It's designed to feel comfortable to those used to working with HTML.

    Forms Library

    A powerful form library that handles rendering forms as HTML, validating user-submitted data, and converting that data to native Python types.

    Admin Interface

    One of the most powerful parts of Django is the automatic admin interface. It reads metadata from your models to provide a production-ready interface.

    Internationalization

    Django offers full support for translating text into different languages, plus locale-specific formatting of dates, times, numbers, and time zones.

    URL Routing

    A clean, elegant URL scheme is an important detail in a high-quality web application. Django encourages beautiful URL design.

    Security Features

    Django provides multiple protections against SQL injection, XSS, CSRF, clickjacking, and more. The user authentication system helps you manage accounts securely.

Trusted by industry leaders

From startups to Fortune 500 companies, Django powers some of the world's most popular websites serving billions of users every day.

Instagram

2B+ users

Spotify

Music streaming

NASA

Space exploration

Pinterest

500M+ users

Mozilla

Web innovation

Dropbox

Cloud storage

Nat Geo

Media & publishing

The Guardian

News platform

Billions of users worldwide

Fortune 500 companies

Startups to enterprises

Join the Community

Django has a vibrant, active community of developers from around the world. Connect, learn, and contribute to the ecosystem.

75K+

GitHub Stars

2M+

Monthly Downloads

20+

Years of Development

Join Discord

Chat with 15K+ developers

Community Forum

Get help and share knowledge

Contribute on GitHub

Help improve Django

Official Docs

Comprehensive documentation

Ready to build something amazing?

Join thousands of developers building with Django every day. Get started in minutes with our comprehensive documentation.