
Master the Django admin dashboard with a step-by-step guide from basics to advanced features. Explore dropdown filters, custom actions, maps, and exporting data in formats like CSP and Excel.
Set up a Django project and blog app, register them in installed apps, create a super user, and access the Django admin to view authentication models like users and groups.
Learn to customize the Django admin dashboard by changing the site header, site title, and index title through the admin site configuration and the administrator class.
Register your blog model in the Django admin to enable CRUD operations through the admin dashboard, and use the title as the instance display after migration.
Learn to customize django admin headers by changing the app section title from main to block management and register the app using the dotted path to its app config class.
Discover how to configure list display in the Django admin dashboard with a model admin class, showing title, created, last modified, and draft in a table.
learn to seed a Django project with 500 random blog objects using the Faker library for tests, generating random titles and bodies.
Add list filters in the Django admin dashboard to filter blog posts by draft status, using the draft field to show posts with draft true or false.
Learn how to apply custom ordering in the Django admin list by declaring an ordering tuple in the admin class, and override get_ordering for dynamic fields by user.
learn how to enable custom search in the Django admin dashboard by adding a search field for blog titles, using search_fields, text field types, and case-insensitive lookups.
Learn to use pre-populated fields in the Django admin to auto-fill the slug from the title, configuring the source field and saving changes in the blog model.
Learn to customize Django admin change list pagination by setting list_per_page to control items per page, e.g., from 100 to 50. Explore filtering by draft status and created date, including last seven days and this month, to refine admin views.
Learn to create custom admin actions in Django to batch update selected blocks by setting is_draft to false, publish them, and show success messages.
Learn to add a date hierarchy in the Django admin to drill down data by creation date for quick, time-based navigation across records.
Learn to customize the Django admin form layout by ordering fields with ModelAdmin.fields, controlling visibility of title, body, slug, and draft, and placing fields in the same row.
Learn to organize the Django admin form with fieldsets, grouping fields into labeled sections, and customize display with classes and descriptions for models with many fields.
Explore displaying non-field data in Django admin by adding a model property to show days since creation, or implement a blog admin method with short_description to label the column.
Enhance the Django admin dashboard by integrating a rich text editor for the blog body field, replacing textareas with a wysiwyg editor and enabling headings, tables, links, and media.
Explore building a one-to-many relationship between blog and comments by creating a comment model with a foreign key, related name comments, and admin registration for the Django admin dashboard.
Generate random comments for each blog post using a library, set up a comments admin, and use bulk creation to attach three comments per blog with the blog shown.
Learn to use Django admin inline editors to manage related models, such as editing and adding blog comments from the blog page, using tabular or stacked inlines.
Master the Django admin dashboard using list_editable to edit fields on the changelist, including booleans like is_active, with text fields becoming text areas and list_per_page for bulk edits.
Learn to collapse and expand sections on the Django admin dashboard change page, using a collapse class in section configuration to control advanced options and comments.
Extend the Django admin changelist queryset to annotate each blog with a comments count, add a 'comments count' column to list_display, and enable sorting by the annotated value.
Create a category model and establish a many-to-many relationship with blogs in the Django admin dashboard; register the model and manage categories through migrations and data entries.
Define the plural and singular verbose names for a Django model using class Meta, then migrate; update the blog admin to enable selecting categories with a multiple-select.
Learn to customize many-to-many selection in the Django admin using the built-in filter_horizontal and filter_vertical interfaces, improving filtering and searching of related categories.
Configure Django admin access by defining super users, staff users, and regular users, then assign specific permissions to control each role's admin actions.
Learn how the Django admin permission system assigns add, change, view, and delete rights to individual users or groups, using John’s blog access as an example.
Create a user group in the Django admin, assign permissions to that group to control access to blogs and comments, and add users to the group.
Enhance the Django admin dashboard with dropdown filters using the Jianguo Administrator DropDown package. Install it, add to installed apps, and apply the dropdown filter to comments for easier filtering.
Install and enable a date range filter package for the Django admin and configure the blog admin to filter by the date created using the time range filter.
Learn to integrate maps into the Django admin using django-leaflet, register a Place model with name and position, migrate, and configure the Leafleted Yardman admin class for interactive map display.
Learn to enable import and export in the Django admin using Jungle Import-Export, supporting formats like CSV and Excel, plus other common options through a resource class and ImportExportModelAdmin.
Learn how to customize the Django admin dashboard with Grappelli, including installation order, overriding admin templates, and basic configuration to change the look and feel.
Secure the Django admin dashboard by enforcing minimal permissions, enabling two-factor authentication, restricting access by client IP address, and changing the default admin URL path.
Learn how to optimize Django admin queries by using select_related on foreign keys and one-to-one fields to reduce database hits; customize behavior via get_select_related.
Optimize the Django admin dashboard by replacing foreign key dropdowns with raw id fields, enabling quick lookup of related blogs via a search input without loading all records.
Learn how to disable deleting in the Django admin by overriding get_actions to remove delete selected and has_permission to return false, removing the delete button on change pages.
Learn how to secure the Django admin dashboard with the Jianguo Admin Honeypots, log unauthorized login attempts, and route access to a secret admin path while notifying admins by email.
One of the most powerful components of Django is the automatic admin interface. It provides a quick, database centric interface that authenticated users can use to manage content on a Django site.
However, the Django admin exposes an API which is unique and quite different from all the other components that ship with Django, such as the auth app. This makes it difficult for Django developers to take full advantage of the admin dashboard.
This course, exclusively on the Django admin, aims at solving that. It will arm the student with expert knowledge on how to master, supercharge and be productive with the Django admin.