New Wagtail Course! 🥳 The Ultimate Wagtail Developers Course

Tutorial Wagtail Version: 2.x

StreamField Deep Dive 2: Exploring Common StreamFields

We'll dive into most of the simple StreamFields and explore some of the options they have to offer. We'll also look at ChooserBlock inheritance for the PageChooserBlock, ImageChooserBlock and DocumentChooserBlock.

Watch the previous video first!

If you haven't watched the first StreamField Deep Dive video, you might want to watch that one first. It will answer some of the more common questions about I made a jump from a StreamField to the source code.

You can check it out here: Wagtail StreamField Deep Dive #1

Always assume Wagtail was made to be easy

StreamFields are not complicated. If you're familiar with Django Models at all, this will be super simple to understand. If you've never used a Django Model thats OK because, luckily, Python, Django and Wagtail are all very verbose (literal naming conventions) so you can pick up on what's going on without knowing Django.

The Source Code

You can view the source code I reviewed in this video by looking at Wagtails open source repo https://github.com/wagtail/wagtail/blob/master/wagtail/core/blocks/field_block.py

Related tutorials

StreamField Deep Dive: How to find undocumented options

Posted on

The Wagtail docs can't possibly cover everything, that's pretty unrealistic to expect perfect documentation. So in this video I will show you how to explore StreamField options that aren't always available in the documentation. You can apply what you'll learn in this video to any feature in Python, but we're using StreamFields as an example. Let's learn how to dive into a core feature of Wagtail!

View lesson, StreamField Deep Dive: How to find undocumented options

Setting Up RichText Streamfields

Posted on

In Wagtail you can have two Richtext areas: a model field and a StreamField. In this article we'll cover the Streamfield type.

View lesson, Setting Up RichText Streamfields

How to Add a Basic StreamField to your Wagtail CMS Page

Posted on

In this lesson we are going to learn how to add a basic StreamField to a a generic Wagtail CMS Page. We'll create a new app from scratch, and this StreamField will have a title and text (using StructBlock), a custom template, and it will lay the foundation for the next lesson which covers inheriting RichTextBlock and modifying the features it can have.

View lesson, How to Add a Basic StreamField to your Wagtail CMS Page

Adding a Banner (Part 2)

Posted on

In this video we learn how to access Wagtail Images, get Bootstrap 4 setup as our frontend framework, how to load Wagtail template tags, and how to make Richtext show up as Richtext. This is the secon

View lesson, Adding a Banner (Part 2)

The Ultimate Wagtail Developers Course

This course covers everything from basic installation to advanced features like custom blocks and API integration, it's perfect for developers looking to enhance their skills with this powerful CMS.

Ultimate Wagtail Developers Course Logo