Questions tagged [wagtail]

Wagtail is a Django content management system (CMS), focused on flexibility and user experience. When using this tag, you may also want to add the [django] tag to improve visibility.

Wagtail is a content management system built originally for the Royal College of Art and focused on flexibility and user experience.

Its features include:

  • A fast, attractive editor interface
  • Complete control over design with standard Django templates
  • Configure content types through standard Django models
  • Tightly integrated search (with an Elasticsearch backend for production)
  • Strong document and image management
  • Wide support for embedded content
  • Simple, configurable permissions
  • Support for tree-based content organisation
  • Optional preview->submit->approve workflow
  • Fast out of the box. Varnish-friendly if you need it

Useful links

2300 questions
0
votes
0 answers

Filtering queryset defined with @property

For a headless wagtail app I'm trying to query all of the blog pages, find the latest page that is marked as being a hero, and then exclude that hero page from the list of all pages. Reason being, I want to display the hero page as a hero image on…
Gene Higgins
  • 525
  • 3
  • 5
  • 16
0
votes
0 answers

My urls no longer point to my pages Wagtail

On a wagtail site I have lost links to my blog pages (possibly as a result of moving to a newer version) My blog listing page is still accessible with the url "http://localhost:8080/blog/" I have the following models class BlogListingPage(Page): …
Psionman
  • 3,084
  • 1
  • 32
  • 65
0
votes
1 answer

Wagtail - Change default HTML-Tag wrapper for StructBlock in StreamField

I noticed that when my StructBlocks render in the frontend, it's html template is wrapped by a div tag. I would like to change this HTML-Tag for a li tag for example. Any possibility to do this?
Darius Mann
  • 637
  • 1
  • 5
  • 14
0
votes
1 answer

dependencies reference nonexistent child node

I tried to dockerize my Wagtail Web Application and this error Occurred. I tried docker-compose build there was no errors. after that i tried docker-compose up then this error occurred I really need help on this…
0
votes
1 answer

Collectstatic deleting wagtail blog images

I have a wagtail site that I deploy using elasticbeanstalk. When I deploy collectstatic is ran: .platform/hooks/postdeploy #!/bin/sh source /var/app/venv/staging-LQM1lest/bin/activate python /var/app/current/manage.py migrate python…
RobMcC
  • 392
  • 2
  • 7
  • 20
0
votes
2 answers

django Form, MultipleChoiceField and circular import

I try to setup a ModelForm Formset - with Checkbox fields... But if I set a queryset for my MultipleChoiceField I get an "ImportError" ImportError: cannot import name 'Event' from partially initialized module 'ferienspiel.event.models' (most likely…
user966660
  • 634
  • 1
  • 8
  • 20
0
votes
1 answer

Deploying Django to production correct way to do it?

I am developing Django Wagtail application on my local machine connected to a local postgres server. I have a test server and a production server. However when I develop locally and try upload it there is always some issue with makemigration and…
sqwale
  • 554
  • 3
  • 24
0
votes
1 answer

Can't save custom optional ChooserBlock when blank

Came across the very same issue that is well described here : https://github.com/wagtail/wagtail/issues/7344#issue-946329708 but the fix doesn't seem to work in my case. Basically I have a custom ChooserBlock supposed to make it possible to tie a…
rafich
  • 3
  • 2
0
votes
1 answer

Getting url of image on django/wagtail site

I have a wagtail site - where blogpages are rendered by looping through a streamfield (in which each block can have an image, a heading and some text):
{{ page.category…
RobMcC
  • 392
  • 2
  • 7
  • 20
0
votes
1 answer

wagtail 'NoneType' object has no attribute 'model'

I have install a fresh wagtail when I try to create a page I'm getting error : 'NoneType' object has no attribute 'model' My class is : class CategoryPage(Page): description_meta = models.CharField(max_length=500, null=True, blank=True) …
im-learning
  • 117
  • 2
  • 10
0
votes
1 answer

Django Wagtail forms based on models

I have a simple model that references my Auth_User_model. I want to create a simple form that creates an OAuth2Client which inherits from functionality from OAuth2ClientMixin. class OAuth2Client(models.Model, OAuth2ClientMixin): user_id =…
sqwale
  • 554
  • 3
  • 24
0
votes
1 answer

wagtail can't add ckeditor to blocks

I'm using wagtail and trying to use ckeditor inside blocks but seems not working the field with ckeditor not showing in admin when I try to create or edit a page I want to use ckeditor because I can use the option source to insert div and class…
im-learning
  • 117
  • 2
  • 10
0
votes
1 answer

Testing Django Wagtail - assert that a child of the given Page type with an image can be created under the parent

I've defined a custom page model (a blog post) as a child of a parent model (a blog index page) and I want to test that the child can be created under its parent. The BlogPage and BlogIndexPage models are copied from the wagtail "basic blog" example…
John
  • 949
  • 1
  • 9
  • 20
0
votes
1 answer

Testing Django Wagtail - assert that a child of the given Page type can be created under the parent, using the supplied POST data

I've defined a custom page model (a blog post) as a child of a parent model (a blog index page) and I want to test that the child can be created under its parent. The BlogPage and BlogIndexPage models are copied from the wagtail "basic blog" example…
John
  • 949
  • 1
  • 9
  • 20
0
votes
1 answer

How to register/login user in wagtail by uing api.V2

I want to register new user/ login user in wagtail website by api.V2. Because I want to use react as frontend. How to do it.?