Tsallaka zuwa abun ciki
Justice Tech School

The Admin Site

Django has a ready made admin. Create a superuser, register models in admin.py and visit /admin/.

Example
python manage.py createsuperuser

# blog/admin.py
from django.contrib import admin
from .models import Post

admin.site.register(Post)

Exercise

Create the first admin user.

python manage.py 

Quiz Test

Where do you register models?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.