- 1. Introduction
- 2. Create Wagtail Project
- 3. Create Frontend App
- 4. Dockerizing Wagtail App
- 5. Add Blog Models to Wagtail
- 6. Page Templates in Wagtail
- 7. Build Page Layout with Tailwind CSS
- 8. StreamField in Wagtail
- 9. Routable Page
- 10. Add Pagination Component
- 11. Add Date to the PostPage URL
- 12. Full Text Search
- 13. Markdown Support
- 14. Customize Markdown Renderer
- 15. Build Flexible Form Page
- 16. Menu Management
- 17. Wagtail SEO Guide
- 18. Stimulus Basic
- 19. Dark Mode
- 20. Tailwind Typography Dark Mode
- 21. Carousel
- 22. Comment Model
- 23. Customize Django-Contrib-Comments
- 24. Manage Comment in Wagtail
- 25. Add Mention Support to Django Form with Tribute.js
- 26. Add Emoji Support to Django Form with Tribute.js
- 27. Deploy to DigitalOcean
- 28. Next Steps
- 29. Backend FAQ
Build Blog With Wagtail CMS (4.0.0)
Learn Wagtail CMS from scratch!
This book will teach you how to build a modern blog with Wagtail CMS
Minimum price
$23.99
$29.99
You pay
Author earns
About
About the Book
This book will teach you how to build a modern blog with Wagtail CMS
By the end of this course, you will be able to:
- Understand
Dockerand useDocker Composeto do development - Use
python-webpack-boilerplateto jump start frontend project bundled by Webpack. - Install
Tailwind CSSas the style solution. - Install
Stimulus, understand how it works and write Stimulus controllers. - Learn how
Dark Modeworks in Tailwind CSS and use Stimulus controller to toggle the dark mode. - Understand the benefit of the healthy Stimulus ecosystem by reusing 3-party Stimulus controller.
- Create blog models to work with Wagtail.
- Use
PDBandDjango shellto debug, test code and check data in terminal. - Learn to use
RoutablePageand addDateto the post url. - Build
Paginationcomponent and correctly handle querystring. - Make the blog supports writing in
MarkdownandLatex. - Create contact page using Wagtail
FormBuilder - Build menu, meta tags, sitemap, robots.txt for better SEO.
- Build comment system based on
django-contrib-commentswhich supportGeneric Relations - Use
Tribute.js,Axiosto addMentionandEmojisupport to the comment form. - Deploy the production app to DigitalOcean
Tech
- Python 3.10
- Django 4
- Wagtail 4
- Stimulus 3
- Tailwind CSS 3
This book includes:
- A PDF ebook which contains about 30 chapters.
- 20+ screenshots and several diagrams, all created by me.
Changelog:
4.0.0 Released 2022-11-07
- Drop Bootstrap, and use Tailwind CSS as style solution.
- Use Stimulus to help write Javascript.
- Upgrade Django, Wagtail, update the screenshots.
3.0.0 Released 2021-08-23
- Upgrade Django, Wagtail, update the screenshots.
- Import
python-webpack-boilerplateas frontend solution - Upgrade Bootstrap 5, drop jQuery, write DOM related code with vanilla JavaScript
2.0.0 Released 2021-01-09
- Rewrite the book and source code, update the screenshots.
- Add content about docker-compose and docker
- Add content about the django-contrib-comments
- Add content about the Webpack
1.0.0 Released 2017-09-13
Bundle
Bundles that include this book
The Wagtail CMS Bundle

4 Books
- Pricing
$60.00
Minimum priceBought separately$129.96Suggested price$60.00
Author
About the Author
Michael Yin is a full stack developer from China, and he loves to write high-quality tutorial about programming.
He has published 5 books on Leanpub.
- The Definitive Guide to Hotwire and Django
- Build SPA with React and Wagtail
- The Definitive Guide to Next.js and Wagtail
- Build Blog With Wagtail CMS
- Build Blog with React (SSR) and Wagtail
- Ultimate Guide To Scrapy
He also published Celery courses on testdriven.io
- The Definitive Guide to Celery and Flask
- The Definitive Guide to Celery and Django
- The Definitive Guide to Celery and FastAPI
Below are the projects he is currently building:
- https://intentloom.com AI-powered Reddit lead discovery tool
- https://indiemakershub.com Indie hacker directory
- https://saashammer.com Django SaaS boilerplate
- https://leandir.com AI directory template
Contents
Table of Contents
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Write and Publish on Leanpub
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.