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

Wagtail and GraphQL

I've been looking into whether using Wagtail with GraphQL as a headless CMS would be viable for a future project. To start with I used Brent Clark's excellent and easy to follow tutorial which got me up and running. Using Graphene i quickly found it was fine for normal Django fields but when it came …

Continue reading Wagtail and GraphQL

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