0Pricing
Python Academy · Lesson

The Django Admin

Manage data with the admin site.

The Built-in Admin

Django ships with a powerful admin site: an auto-generated web interface for managing your data. It is one of Django's most loved features.

# The admin gives you CRUD screens
# for your models with zero UI code
print('Django admin manages data out of the box')

Admin Is Already Installed

The admin lives in django.contrib.admin, included in INSTALLED_APPS by default, and is wired into the project urls.py.

# mysite/urls.py
from django.contrib import admin
from django.urls import path

urlpatterns = [
    path('admin/', admin.site.urls),
]
print('admin/ is mapped to the admin site')

All lessons in this course

  1. Projects and Apps
  2. Models and Migrations
  3. Views and URLs
  4. The Django Admin
← Back to Python Academy