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

passing JS/CSS to carousel bloc in a Wagtail template

Using wagtail(django) I created a carrousel that serves all my media content. The user can select 1-3 columns (three templates accordingly), which displays a carousel if media content >1, else only the image/video. As for the 2-3 columns display can…
donbonbon
  • 81
  • 1
  • 8
0
votes
1 answer

Django/wagtail admin page links pointing to invalid address

I have a wagtail site and have a problem with the ‘users’ section of the admin page My users/admin.py is : from django.contrib import admin from django.contrib.auth import admin as auth_admin from django.contrib.auth import get_user_model from…
RobMcC
  • 392
  • 2
  • 7
  • 20
0
votes
0 answers

wagtail error on upload image in richtext field

when I try to upload image using richtext field in wagtail I'm getting a json respons html "\n\n\n\n\n
\n \n
\n
\n
\n …
im-learning
  • 117
  • 2
  • 10
0
votes
1 answer

In Wagtail, get counts of Pages in each Tag, but only counting live() Pages

In Wagtail I want to get a list of Tags, each with a count of the number of Pages tagged, but only counting live() pages. Let's say I have this set-up, from the docs: from django.db import models from modelcluster.contrib.taggit import…
Phil Gyford
  • 13,432
  • 14
  • 81
  • 143
0
votes
1 answer

How to get the plane password of Django admin user in pre_save signal when creating user from admin panel?

I need to log Django admin users in 3ed party authentication service. For that I need plane password without hashing. Here I used pre_save signal. That approach works well when I create an API endpoint for registration. But when I create an admin…
0
votes
2 answers

Get page URL for scheduled publishing

My editors want to know the end page url for publishing in social media. Is there any way to get the page URL as when it will be published before actually publishing it (scheduled publishing)?
Vlax
  • 1,447
  • 1
  • 18
  • 24
0
votes
1 answer

Is it possible to allow moderators to view, add and edit a snippet

By default, it seems snippets are only accessible to admins in wagtail. Is there a way to specify a snippet is accessible to moderators?
duTr
  • 714
  • 5
  • 21
0
votes
1 answer

AttributeError: module 'django.db.models' has no attribute 'UniqueConstraint'

Sys: Windows 11 Prof; Python v3.9.7 I've tried to install Wagtail Colour Picker but I got this error message back. Do I need to install or remove something? Please Help ! models.UniqueConstraint(fields=['page'],…
MBGeo
  • 1
0
votes
1 answer

Django - Wagtail: How to add classes to generated HTML elements from RichTextField

Using Wagtail 2.16.1, I have a BlogPage model that contains a body field which is a RichTextField. When I put {{ page.body|richtext }} into the template, the HTML that is rendered contains various html elements, as expected. I'd like to specify…
John
  • 949
  • 1
  • 9
  • 20
0
votes
1 answer

How to test order of Pages in Wagtail?

I have a Wagtail site and I have a parent/child structure between a couple of page types: class FrontPage(Page): subpage_types = ["InnerPage"] def get_next_page(self): return self.get_children().live().first() class…
Phil Gyford
  • 13,432
  • 14
  • 81
  • 143
0
votes
0 answers

How do I install wagtail 2.7?

How do I install wagtail==2.7? I already tried and I get this error The headers or library files could not be found for zlib, a required dependency when compiling Pillow from source. Please see the install instructions at: …
0
votes
1 answer

How to specify a template for a Snippet in a StreamField when using SnippetChooserBlock

I want to use a snippet in a StreamField: @register_snippet class Advert(models.Model): url = models.URLField(null=True, blank=True) text = models.CharField(max_length=255) def __str__(self): return self.text class…
alias51
  • 8,178
  • 22
  • 94
  • 166
0
votes
1 answer

Layout problems on Wagtail

I installing Wagtail on shared hosting. Instead of normal main and admin page there is view like that
Denis S.
  • 137
  • 2
  • 11
0
votes
1 answer

Wagtail: Rendering tags from Fieldblock

I am really stuck on this: (sorry, newbie problems) Following the method exposed in this post I need to render the tags in a page, but I am not able to get the tag values through the @property The code is as follow, the models: class…
fscliment
  • 3
  • 3
0
votes
0 answers

I'm trying to set-up Wagtail on Cloud Run

I'm trying to set-up wagtail and using the Wagtail on Cloud Run guide on https://codelabs.developers.google.com/codelabs/cloud-run-wagtail#5. I'm on step 6 and here's the errors I'm facing after executing the migrate.yaml command tep #1 - "migrate":…