Help with programatically publishing pages with draftail markup

This page summarizes the projects mentioned and recommended in the original post on /r/WagtailCMS

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • Wagtail

    A Django content management system focused on flexibility and user experience

  • I am migrating a bunch of articles in an XML file to a new Wagtail and have created a management command to handle populating all of my model fields. All of my pages are published correctly using new_page.save_revision().publish() new_page.save_revision() but the issue is that the draftail richtextform doesnt get hit and the formatting is off. It looks good but if you go in and manually hit publish again, then all the formatting gets messed up when it gets passed through the draftail form. I am trying to figure out how to manually make it publish through draftail but I cant figure out how. This question on github is the same issue that I have but it didnt get answered: https://github.com/wagtail/wagtail/issues/6359.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts