Wagail / Graphene Mutation with image upload example

Here's some example code of how to setup a mutation with an image file upload for a Wagtail Image field, then how to test in Postman (Postman is a useful tool for testing APIs etc) It took me a while to figure out how to use Postman to send a mutation query with a file …

Continue reading Wagail / Graphene Mutation with image upload example

Advertisements

More StreamField Examples – Top news stories block by tag

We thought it would be useful to be able to display say the top 5 news stories tagged with a certain word anywhere within a page using StreamField, so for example the latest sport related news stories could be added into a column next to something else on a page in Wagtail. You could adapt …

Continue reading More StreamField Examples – Top news stories block by tag

Wagtail Version 1.0 Launched including Streamfield Feature!

Read more about it here : https://wagtail.io/blog/wagtail-10/ Exciting times in the CMS world. This version also contains an API built in. Hope to make some more blog posts very soon specifically on Streamfield, I have loads of ideas for using it in our current work, to make layout and integration of external information easier for our …

Continue reading Wagtail Version 1.0 Launched including Streamfield Feature!

Adding a Twitter Widget for Wagtail’s new StreamField

Wagtail's latest feature is called the 'StreamField', currently only available in the 1.0 Beta 1 version, but clearly a bit of a Django CMS game changer. It allows the editor to assemble a flow of page content of varying types ('Blocks' defined by the developer) in any order / combination they wish, kind of a …

Continue reading Adding a Twitter Widget for Wagtail’s new StreamField

Outputing JSON for a model with properties and db fields in Wagtail/Django

I thought I'd share this example because it took me ages to figure out how to output JSON for a model which included a model property as well as the actual fields of the model. For our footer links we had a property called 'link' in the snippet which would return either a full URL …

Continue reading Outputing JSON for a model with properties and db fields in Wagtail/Django