← Django learning pathDjango · Module 6 of 10
Django admin
Manage data with the built-in admin site.
📖 Key ideas
- Create an admin user: python manage.py createsuperuser.
- Register models in admin.py: admin.site.register(Post).
- Customise with ModelAdmin: list_display, search_fields, list_filter.
- Visit /admin to manage records.
- Admin is for staff, not public users.
💡 Real-life example: Django admin is a free back office that appears the moment you hire it, ready for staff to use.
createsuperuserCreates an admin account
admin.site.registerShows a model in admin
list_displayColumns in the admin list
ModelAdminClass customising admin pages