Build Blog With Wagtail CMS (3.0.0)
Minimum price
Suggested price

Build Blog With Wagtail CMS (3.0.0)

About the Book

Demo Link

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:

  1. Understand Docker and use Docker Compose to do development
  2. Create blog models to work with Wagtail.
  3. Import Bootstrap themes to the blog.
  4. Use PDB and Django shell to debug, test code and check data in terminal.
  5. Learn to use RoutablePage and add Date to the post url.
  6. Build Pagination component and correctly handle querystring.
  7. Make the blog supports writing in Markdown and Latex.
  8. Create contact page using Wagtail FormBuilder
  9. Build menu, meta tags, sitemap, robots.txt for better SEO.
  10. Build comment system based on django-contrib-comments which support Generic Relations
  11. Create Frontend project from python-webpack-boilerplate and load compiled CSS and JS in Django template.
  12. Learn SCSS and use it to customize style in quick way.
  13. Use Tribute.jsAxios to add Mention and Emoji support to the comment form.
  14. Learn Async/AwaitPromise and the benefits.
  15. Deploy the production app to DigitalOcean


  • Python 3.8
  • Django 3.2
  • Wagtail 2.14
  • Node.js 12
  • Webpack 5
  • Bootstrap 5.1
  • Tribute.js
  • Axios

This book includes:

  1. A PDF ebook which contains about 30 chapters.
  2. 20+ screenshots and several diagrams, all created by me.


3.0.0 Released 2021-08-23

  1. Upgrade Django, Wagtail, update the screenshots.
  2. Import python-webpack-boilerplate as frontend solution
  3. Upgrade Bootstrap 5, drop jQuery, write DOM related code with vanilla JavaScript

2.0.0 Released 2021-01-09

  1. Rewrite the book and source code, update the screenshots.
  2. Add content about docker-compose and docker
  3. Add content about the django-contrib-comments
  4. Add content about the Webpack

1.0.0 Released 2017-09-13

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.

He also published Celery courses on

He is also the founder of a Digital Agency AccordBox and available for remote job.

Bundles that include this book

Suggested price
Bundle Price

Table of Contents

  • 1. Introduction
  • 2. Create project
  • 3. Dockerizing Wagtail App
  • 4. Add Blog Models to Wagtail
  • 5. Page Templates in Wagtail
  • 6. Add Bootstrap Theme to Wagtail
  • 7. StreamField in Wagtail
  • 8. Routable Page
  • 9. Add pagination component
  • 10. Add Date to the PostPage URL
  • 11. Full Text Search
  • 12. Markdown Support
  • 13. Customize Markdown Renderer
  • 14. Build form page
  • 15. Menu Management
  • 16. Wagtail SEO Guide
  • 17. Modern frontend development with Webpack
  • 18. Dockerizing Webpack project
  • 19. Comment Model
  • 20. Customize Django-Contrib-Comments
  • 21. Manage comment in Wagtail
  • 22. Add Mention support to Django form with Tribute.js
  • 23. Add Emoji support to Django form with Tribute.js
  • 24. Deploy
  • 25. Next Steps
  • 26. Backend FAQ
  • 27. Frontend FAQ

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

Do Well. Do Good.

Authors have earned$11,984,888writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

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.

Learn more about writing on Leanpub