Open williln opened 6 years ago
How to migrate to Wagtail is a recurrent question so it might indeed be a good idea to have some documentation.
However we have to be careful on the wording and stress that it is for creating pages programmatically to migrate to Wagtail, not within a Django migration (which is a completely different story).
Docs request
When doing a content migration from regular Django models to new Wagtail models, I found very few resources. Saving a
Page
object programmatically, for example, is not currently documented and best practices are not made available. I touched on this in my Wagtail Space US presentation (link).Proposal
Advanced Topics
, possibly calledMigrating to Wagtail
Page
model field reference w/relevant explanations of how specific fields are usedPage
instance programmatically, including creating the relationship to the correspondingIndex
page if usingsave_revision
method and what the difference is between aPage
and aRevision
in this contextPage
to use existing URL path or saving aRedirect
)Future enhancements
StreamField
s, for example).I'm happy to take this on, but do the maintainers think this is a good idea?