Course duration
- 2 days
Course Benefits
- Learn to get a Django admin site up and running quickly so that staff can easily manage data.
- Learn to customize the view for listing, searching, and filtering data.
- Learn to customized the views for adding and modifying data.
- Learn to manage permissions, so that only the right users can add, modify, and delete specific types of data.
- Learn to make bulk changes using actions.
- Learn to install and use extensions for making Django admin even more powerful.
Course Outline
- Setting Up
- Installing Django in a Virtual Environment
- Creating the Project
- Creating the polls App and the Models
- Django Debug Toolbar
- The Django Admin Documentation Generator
- Django Admin Introduction
- What You Get for Free
- Registering Models
- AdminSite objects
- Reversing Admin Site URLs
- Permissions
- The changelist View
- The Basics
- Filtering
- Inline Editing
- Speeding Up Load Time
- The display Decorator
- The change View and the add View
- The Basics
- Fieldsets
- Related Models
- Setting Initial Data
- Inlines
- Tables and Stacks
- Basic Configuration
- Features Shared with ModelAdmin
- Permissions
- Conflicting Foreign Keys
- Many-to-Many Relationships
- Actions
- The Basics
- Changing a Field Value
- Merging Records
- Exporting Records
- Templates
- The Basics
- Overriding change_list.html
- Overriding change_form.html
- Overriding submit_line.html to Add a New Button
- Overriding base.html
- Filters
- The Basics
- Creating Custom Filters
- Creating New Types of Filters
- Using Filters to Show Extra Columns
- Useful Extensions
- django-ckeditor
- django-admin-rangefilter
- django-import-export
- Advanced Topics
- Multiple Admin Sites
Class Materials
Each student will receive a comprehensive set of materials, including course notes and all the class examples.
Experience in the following is required for this Django class:
- Experience with Python
- At least basic experience with Django, preferably more.
Courses that can help you meet these prerequisites:
Instructor-led courses are offered via a live Web connection, at client sites throughout Europe, and at our Geneva Training Center.