Wagtail connecting to Azure Storage Blob Container with SAS

In a previous article I showed how I connected to Azure Storage for static files and uploads, but this example used the main account key. This means any app using the key can connect to all containers, create containers etc. A better practice is to use Shared Access Signatures. You can create one in the …

Continue reading Wagtail connecting to Azure Storage Blob Container with SAS

Advertisements

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

How to stop users accidentally leaving a Wagtail edit page with JQuery

We had a request recently to implement a feature to stop users accidentally losing work while editing a page then forgetting to save. Especially now in Wagtail with features like StreamField, they can get pretty engrossed in their page layout design then forget to save, hit the 'Back' button my mistake etc. Although I believe …

Continue reading How to stop users accidentally leaving a Wagtail edit page with JQuery