Skip to content

Tag: wagtail

Edit Form Submit handler for a Model

I have a fairly simple django model in a Wagtail CMS; essentially: I need to perform an action when this model is saved via the Wagtail model edit form (eg /admin/section/thingy/123/edit). Currently, I have registered a post_save signal, however this has resulted in the method being called when the model is s…

no such table: wagtailcore_site

I’m hosting two websites on ubuntu server and both having postgresql, the first one is working prefect but the second give me this error no such table: wagtailcore_site Request Method: GET Django Version: 2.2.10 Exception Type: OperationalError Exception Value: no such table: wagtailcore_site Exception …

How to break lines when using wagtail BlockQuoteBlock?

I have this model: When I’m saving page with some text using blockquote I use some line breakes and even <br> tags: But on the page there are no line breaks after it: So how to make this work and save line breaks? I’m using wagtail 1.13.1. Answer I think it was done because of security reaso…

How to change django wagtail’s admin logo

I am working on a small project and I thought I’d give wagtail a try. I am now wondering how I could change wagtail’s admin logo in the sidebar (top left image on the picture bellow). I could change /static/wagtailadmin/images/wagtail-logo.svg directly but it’d be wrong ;). Answer Wagtail al…