Tutorial Summary

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

Sign up for our newsletter

Get notified about new lessons :)

Our Sites