2025-10-08 –, Track Two
Creating pages and other objects programatically, either for automated testing, or content migration: what works, some pitfalls, and how to make it robust.
Wagtail is great for content editors to author pages, but what about automation? Whether you're writing automated tests, or migrating content from another platform, you'll want to write code that creates and updates pages, snippets, users and other things.
- How Wagtail models page content, in brief (multi-table inheritance, treebeard, revisions, Streamfield, translations).
- Creating and updating pages.
- Migrating content: handling concurrency issues and circular references.
- Testing: caching, competing with the default site, using wagtail-factories.
- Management command to create sample data.
My name is Alex Morega. I'm a Senior Engineer at Torchbox, and I love Wagtail!