I'm creating a website with wagtail to replace someone's existing weebly site. It would take hours to re-create each of the hundreds of page instances and upload each image for each of those pages.
I already have the page models I need, and my site looks a lot like the getting started tutorial from the wagtail docs. I'm wondering how I might be able to script migrating this content. When searching for answers I'm finding more information about programmatically creating models, rather than pushing the content itself to my wagtail site.
I have already scraped the old site and saved all the images needed, and I have JSON data in the following format:
[
{
"page_name": "first page",
"images": [
{
"url": "http://www.a.com/final-1.jpg",
"filename": "final-1.jpg",
"caption": "A caption"
},
{
"url": "http://www.a.com/final-2.jpeg",
"filename": "final-2.jpeg",
"caption": ""
}
],
"body": "Body text goes here. "
},
{
"page_name": "page 2",
"images":
...
]
I suspect others have faced this issue in the past. I continue to be grateful for the community and all your contributions. Cheers!