What Is Wagtail CMS?

Wagtail builds on Django with a page tree and a friendly admin editing experience.

Unlike monolithic content management systems, Wagtail does not lock you into rigid templates; it is a Pythonic Django package that allows developers complete control over models, queries, and presentation templates.

The Hierarchical Page Tree

Every page in Wagtail inherits from wagtail.models.Page. This structure automatically establishes parent-child tree relationships using treebeard, powers URL path routing, and manages access permissions across site hierarchies.

Custom Page Models and Panels

You define editorial fields and specify how they render inside the Wagtail admin dashboard using panels:

from wagtail.models import Page
from wagtail.fields import RichTextField
from wagtail.admin.panels import FieldPanel

class TechArticlePage(Page):
    intro = models.CharField(max_length=250)
    body = RichTextField(blank=True)

    content_panels = Page.content_panels + [
        FieldPanel("intro"),
        FieldPanel("body"),
    ]

Key Advantages of Wagtail

  • StreamField: Build rich, structured content blocks (mix code blocks, quotes, galleries, and text) without breaking page layout.
  • Responsive Image Renditions: Automatic focal point cropping and on-the-fly resizing with image.get_rendition('fill-800x450').
  • Drafts and Version Control: Review draft revisions, schedule future publish dates, and audit editorial modification history.