
Advanced Django Training
- Adding messages to pages.
- Media files.
- Media settings.
- Uploading files.
- Cleaning form data.
- Safety concerns.
- The filetype library.
- Keeping uploaded files private.
- The django-private-storage library.
- FileField and ImageField.
- Displaying uploaded images.
- Amazon Simple Storage Service (Amazon S3).
- Querying models.
- Adding properties to models.
- Ajax.
- View functions.
- Model constraints.
- Loading data with fixtures.
- Pagination.
- Sorting.
- Advanced querying.
- Field Lookups.
- Q Objects.
- Search.
- Aggregation.
- Annotation.
- The Django Debug Toolbar.
- Prefetching queries.
- Deploying to Heroku.
- Django admin views.
- Customizing title text, change lists, forms, and fieldsets.
- Unregistering models.
- Groups and permissions.
- Additional learning.
- Projects for practice.
Public expert-led online training from the convenience of your home, office or anywhere with an internet connection. Guaranteed to run .
Private classes are delivered for groups at your offices or a location of your choice.
This is a direct continuation of our Introduction to Django course. You must either have taken that course or worked through all the lessons and exercises in our Actionable Django book through Lesson 11: User Registration.
In this advanced Django course, you will learn to work with the messages framework, allow users to upload files, make advanced queries, create view functions, work with Ajax, implement pagination and ordering, implement search, deploy your Django website to production, and customize Django admin.
- Messages Framework
- Message Framework
- Exercise: Adding Messages
- Exercise: Using SuccessMessageMixin
- Exercise: Adding Success Messages to the Joke Views
- Exercise: Adding a Success Message to JokeDeleteView
- Media Files
- Media File Basics
- Exercise: Adding Media Settings
- Exercise: Uploading a Resume
- Exercise: Checking File Type
- Exercise: Keeping Resume Files Private
- Exercise: Adding an ImageField to the Model
- Exercise: Displaying the Avatar
- Amazon Simple Storage Service (Amazon S3)
- Exercise: Setting Up Amazon S3
- Exercise: Static Settings in Development
- Making Queries, Ajax, and View Functions
- Useful Prerequisites
- Managers and QuerySets
- Indexing and Slicing QuerySets
- Checking for Existence
- Creating, Updating, and Saving Model Instances
- QuerySet Methods that Don't Return QuerySets
- One-to-Many Relationships
- Many-to-Many Relationships
- Spanning Relationships
- Joke Voting
- Exercise: Adding a JokeVote Model
- Exercise: Registering the JokeVote Model
- Exercise: Adding Properties to the Joke Model
- Exercise: Rating Jokes Using Ajax
- Exercise: Adding a vote() View Function
- Exercise: Updating the URLConf
- Exercise: Updating the Templates
- Model Constraints
- Letting JavaScript Know if the User is Logged In
- Pagination and Ordering
- Fixtures
- Exercise: Loading Data from a Fixture
- Exercise: Pagination
- Exercise: Ordering
- Advanced Querying and Search
- Field Lookups
- Q Objects
- Exercise: Filtering Results by Category, Tag, or Creator
- Exercise: Implementing Search
- Aggregation
- Exercise: Getting Joke Ratings
- Code Optimization
- Exercise: Installing and Using the Django Debug Toolbar
- Brief Introduction to Annotation
- Viewing SQL Used in QuerySets
- Deploying your Website to Production
- Where to Host Your Django Site
- Exercise: Deploying to Heroku
- Customizing Django Admin
- Django Admin Views
- Exercise: Customizing Titles and Headers
- ModelAdmin Attributes that Affect the List View
- Exercise: Creating a Custom ModelAdmin Base Class
- Exercise: Customizing the Django Admin List View
- Lists vs. Tuples
- ModelAdmin Attributes that Affect Forms
- Exercise: Customizing Django Admin Form Views
- Customizing Fieldsets
- Exercise: Modifying the CustomUserAdmin Class
- Adding Calculated Read-only Fields
- Exercise: Adding a Link to the Change Password Form
- Exercise: Unregistering Models
- Exercise: Django Admin Groups and Permissions
- Additional Topics
- Additional Learning
- Additional Projects
Each student in our Live Online and our Onsite classes receives a comprehensive set of materials, including course notes and all the class examples.
Experience in the following is required for this Python class:
- Python
- Basic Django as taught in our Introduction to Django course
Experience in the following would be useful for this Python class:
- JavaScript
- SQL
Courses that can help you meet these prerequisites:
Register for a Live Class
Request a Private Class
- Private Class for your Team
- Online or On-location
- Customizable
- Expert Instructors