Is there any way to create and publish pages by executing python script in wagtail?
问题 I can create and publish pages(which I have created by inheriting Page class) by using wagtail admin interface by using the process below. class HomePage(Page): template = 'tmp/home.html' def get_context(self, request): context = super(HomePage, self).get_context(request) context['child'] = PatientPage.objects.child_of(self).live() return context class PatientPage(Page): template = 'tmp/patient_page.html' parent_page_types = ['home.HomePage',] name = models.CharField(max_length=255, blank