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.
2,307
questions
0
votes
2
answers
29
views
How is the value of path column under wagtailcore_page table is populated. How is it decided which page will have what value?
I need to insert bulk pages in wagtail database and I need to find out how is the value of path column under wagtailcore_page table is decided?
I tried looking into the database but couldn't map the ...
0
votes
0
answers
14
views
In a Wagtail multisite installation is there a way to link an article to additional sites in the UI?
When you create an article in a Wagtail multisite installation is there an option in the UI to set the additional sites where you want the article to show?
I have looked in the UI but can't find any ...
0
votes
0
answers
24
views
How to publish a page programmatically without creating a (new) revision?
I create/update Wagtail pages on a schedule from an external data source. Currently the wagtail page instances are published via:
page_obj.save_revision().publish()
This works, but it seems that each ...
0
votes
0
answers
11
views
Wagtail preview keeps asking to accept cookies
Wagtail preview keeps asking one of our users to accept cookies, even though we have switched the SESSION_ENGINE to use the Redis Cache rather than the Signed Cookies
The user is using a DELL laptop, ...
0
votes
1
answer
41
views
What should I know before shifting from Django to Wagtail
I am python programmer ,I know how django works but I'm trying to move to Wagtail.
I seem not to understand about how Wagtail works , it mixes Models with templates and I also find out that it doesn't ...
0
votes
0
answers
18
views
How to insert a new page data manually in wagtail database table?
I am using wagtail 2.10.2. And I want to use SQL query to manually create a page entry for a page type in database. Would like to know the steps and possible complications in doing so. Thanks
How to ...
0
votes
0
answers
29
views
Internal server error when DEBUG=False in Wagtail
hello you beautiful people!
As soon as I set DEBUG=False, my website returns an internal server error. Going to /admin works, and I see the admin panel, however without any static files (CSS, JS) ...
0
votes
0
answers
22
views
Wagtail image search works intermittently
I'm working on a website built using Wagtail CMS. Sometimes, a search for images doesn't return anything even when an image that should match the search term is present. An example is in the ...
0
votes
1
answer
25
views
Wagtail: custom URLs for blog page categories?
My blog pages have a type and a subtype.
I want blog page URLs to look like mysite.com/pages/<blog_type>/<blog_subtype>/<blog_title>
By default, they are just mysite.com/pages/<...
0
votes
1
answer
16
views
Use Bootstrap with Abstract email form Wagtail
I want to bootstrap with my form wagtail.
from django.db import models
from modelcluster.fields import ParentalKey
from wagtail.admin.panels import FieldPanel, InlinePanel, MultiFieldPanel, ...
-1
votes
0
answers
13
views
Redirects and Archiving
Is there a way to redirect unpublished pages link to another live page in the website? (Example: Unpublished employee profile page to redirect to the home page if someone has that employee page link ...
0
votes
1
answer
38
views
No such column: 'wagtailcore_page.latest_revision_id' post upgrade from wagtail 3 to wagtail 4.2.4
I have recently upgraded my Wagtail version from v3 to v4.2.4
In this upgrade, the wagtailcore_page creates a new column latest_revision_id through one of its migrations under the library.
When I am ...
0
votes
0
answers
39
views
How to install Wagtail 5.1 or above
I am using MacOS. I tried to install Wagtail 5.1 in a venv and I installed pip install wagtail. and wagtail start mysite mysite. Without using cd mysite
pip install -r requirements.txt, I directly ...
1
vote
1
answer
37
views
After upgrade to Wagtail 5.1, getting the error: cannot pickle '_io.BufferedReader' object
Python 3.8, Wagtail 5.1, Ubuntu 20.04, and pipenv to pin all dependencies
I've successfully upgraded a small site by working through each minor version from Wagtail 4.0 through 5.0. When I upgrade to ...
0
votes
0
answers
22
views
Wagtail: How to use preview on editors page without Django templates?
I started to use Wagtail with the v2 rest endpoint and do not understand how to implement the preview.
I use Nuxt as a frontend and can not find how to integrate previewing on the page editor in ...
0
votes
0
answers
12
views
Fetching Captions from CustomImage Model for Images in Wagtail RichText
I'm working on a Wagtail project and I'm trying to dynamically fetch captions from a CustomImage model to display below images within a RichText field. However, I've encountered challenges in ...
0
votes
1
answer
24
views
In Wagtail how can I access the Page object from inside the StructBlock template?
I have a page called Event
For the event I would like to have a program.
Program consists of ProgramEntry objects linked to the page with ParentalKey.
I would like this program to be displayed in the ...
0
votes
1
answer
52
views
Unknown field(s) specified for a Page model in Wagtail at content_panels
Wagtail Django
class AboutPage(Page):
header_image = ImageChooserBlock()
body = blocks.StreamBlock([
('title', blocks.CharBlock()),
('content', blocks.RichTextBlock()),
])
...
0
votes
0
answers
19
views
How do I integrate Snipcart into Wagtail the right way?
I’m following the Snipcart Wagtail tutorial https://snipcart.com/blog/django-ecommerce-tutorial-wagtail-cms but having difficulty creating the shop page as a separate app/model to the home page.
The ...
0
votes
2
answers
37
views
Why am I getting a NoneType for Allowed Host in Django-Environ when I set allowed host?
The settings code is
import os
import environ
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
env = environ.Env(DEBUG=(bool, False))
environ.Env.read_env(os.path.join(...
0
votes
2
answers
36
views
wagtail-footnotes implementation trouble
I've tried following the readme but it renders the footnotes as their [uuid] both in admin and frontend.
blog.py
from wagtail_footnotes.blocks import RichTextBlockWithFootnotes
class BlogPage(Page):
...
0
votes
2
answers
32
views
How to get the value from an Orderable from a Wagtail Page, and then call a function that will return a value based on the input of the Orderable?
I have a Django/Wagtail project.
I have modified the HomePage in models.py and then in the Wagtail CMS, I populated the newly created fields of my homepage.
Here is how my models.py looks like:
from ...
0
votes
1
answer
24
views
Wagtail fields not showing up in pages list response
Im using Wagtail with django and I'm following the tutorial. I've got a BlogPage like so:
class BlogPage(Page):
date = models.DateField("Post date")
intro = models.CharField(...
0
votes
1
answer
32
views
Is there any way to recover Streamfield data that was lost due to lack of migration?
I pushed changes to StreamFields in my models (i.e., adding new block types) without creating Migrations, as specified in the docs. This resulted in a large loss of user data, and unfortunately there ...
0
votes
1
answer
21
views
Must references to wagtail.core be deleted from migration files?
I'm trying to upgrade a project from Wagtail 4.2.4 to Wagtail 5.0, and Wagtail seems to insisting that I delete all references to wagtail.core from my migration files going back to the beginning of ...
0
votes
0
answers
22
views
Deleting wagtail.core from INSTALLED APPs throws error
This week I've been in the process of incrementally upgrading a project written in Wagtail 2.15.3. I now have it running successfully in Wagtail 4.2.4.
Before upgrading to Wagtail 5.0, I checked to ...
0
votes
1
answer
29
views
Wagtail custom permissions
I have a wagtail site. I have certain pages that I only want certain users to be able to access. I have used the standard django permissions setup to do this:
models.py
class Case(TimeStampedModel):
...
0
votes
2
answers
20
views
Wagtail hook for richtext editor
I created a wagtail hook for adding a code block from the Richtext editor. The hook is working but I have the problem.
The hook supposed to work like as follows,
<div class="code">
...
0
votes
2
answers
30
views
Re-using wagtail page field in a snippet like way
Here's what I'm looking to do: create a horizonal scroll of images/logos which scroll across the foot of the screen on most of a sites pages - a marquee, tickertape something like that.. I'm okay ...
0
votes
0
answers
14
views
How can I set group permissions that filter pages according to their owners in Wagtail
I am working on a blog with Wagtail and would like to give users access to create their own content in the Wagtail admin. I would like users to be able to log into the Wagtail admin, but only have ...
0
votes
1
answer
41
views
Error after removing slug from Page.promote_panels [Django Wagtail]
I am getting the following error after removing the 'slug' field from Page.promote_panels.
I am using wagtail 5.1.
KeyError at /admin/pages/add/blog/blogdetailpage/10/
"Key 'slug' not found in '...
0
votes
0
answers
34
views
Any way to use CRUD in Wagtail(Django) without reload page?
I'm talking about a table with data from a model (like Django). So that the visitor can make changes to the table fields without reloading the page. The description of the framework shows several ...
0
votes
1
answer
60
views
Wagtail always uses default site for URLs
I am using the Django site framework with wagtail.
Wagtail correctly gives me the settings I specified for each site.
I as of now have 2 sites registered:
127.0.0.1
172.1.16.155
So, when I visit 127....
1
vote
0
answers
19
views
Disable Wagtail 5.1 audit log from appearing in console output?
Since upgrading to Wagtail 5.1, it seems that the Wagtail audit log actions are being printed to the development console. This is very noisy and is interfering with other important log messages and ...
1
vote
1
answer
45
views
How can I exclude a subclass (or subclasses) of pages from Wagtail's search functionality?
I'm creating a blog site for a friend and there are certain page models that I would like to be excluded from users' searches. These models are BlogIndexPage and ThankYouPage. Both of these models ...
1
vote
0
answers
49
views
Wagtail autogenerated slug with id
I want to create PersonPage without title field, but with fields “surname” and “name” and also I want it to generate slug (at saving) “surname-name-id” where “id” is private key (id, or page_ptr_id) ...
0
votes
1
answer
50
views
In Wagtail 4.0, How do I query for revisions whose pages are not live?
I am upgrading some code from wagtail 3.0 to wagtail 4.0. My code has one problem query in it that I can not figure out how to fix.
In the old code, the query looks like this:
PageRevision.objects....
0
votes
2
answers
46
views
How to intergate a Django app into a Wagtail CMS
I have a small django app with some CBV's (f.i. a HTMX/ListView)
I want to integrate this app in an exciting Wagtail site:
So it is part of Wagtail pages, the menu structure and I can make use of ...
0
votes
0
answers
27
views
Wagtail and Django
I'm experienced with Django and I've just started looking into wagtail integration in order to provide a better UX to the content management.
Let's say I have an existing Django app and I would like ...
0
votes
1
answer
30
views
Migrating wagtail snippet model into page model
I'm wanting to convert an existing snippet model into a page model, along with migrating all existing data from the snippet model. Is there a way to do this without having to manually convert the data/...
0
votes
0
answers
41
views
Custom Wagtail chooser viewset chosen_view_class is ignored
I have a basic custom ChooserViewSet to add some functionality to returned chosen data and to specify the widget to use. The model associated with the viewset is a registered snippet.
I have specified ...
0
votes
2
answers
28
views
django-comments-xtd clashing with wagtail-localize
I am following the official tutorial for wagtail-localize, and I am at the step to set up a second locale. When I hit save, I get:
DoesNotExist at /admin/locales/new/
XtdComment matching query does ...
0
votes
0
answers
18
views
Unable to load custom JS via Wagtail ModelAdmin.form_view_extra_js
While following the Wagtail 5.x documentation on ModelAdmin customization, I have created a Wagtail ModelAdmin definition as follows:
class PersonModelAdmin(ModelAdmin):
model = Person
...
0
votes
0
answers
16
views
Questions about Wagtail custom document model
I am trying to create a custom document model for additional meta fields following along with the documentation here: https://docs.wagtail.org/en/stable/advanced_topics/documents/custom_document_model....
0
votes
0
answers
19
views
Wagtail Image Chooser Template returns 404 http not found
When I deploy my wagtail django with nginx and I want to choose an image for a ForeignKeyField to wagtailimages.Image I get a HTTP 404 for
<base-url>/cms/images/chooser/ although when I directly ...
0
votes
0
answers
26
views
Bulk Move operation not working in wagtail 4.2.4
I have recently upgraded my Wagtail from v3.0 to v4.2.4 post which when I am trying to perform a bulk operation of 'Move' on multiple pages, I am getting an error as below
DoesNotExist at /cms/admin/...
0
votes
0
answers
24
views
How do i make a form and fields globally accessible in wagtail/django project? [duplicate]
I have a contact form setup in wagtail. The models are defined in home app and the contact form performs as expected when on a seprate page but how do i make the form and the fields accessible by ...
0
votes
1
answer
29
views
Wagtail Preview - request session does not have session_key
Wagtail Preview - request session does not have session_key
When we edit some sub pages the preview shows validation errors exist
this wagtail code is not retrieving the data
def ...
0
votes
1
answer
28
views
MultipleChooserPanel: this.chooserWidgetFactory.openModal is not a function
I upgraded from wagtail 4 to wagtail 5.0.2. When I try to open a MultipleChooserPanel I get the following js error in the browser console:
Uncaught TypeError: this.chooserWidgetFactory.openModal is ...
0
votes
1
answer
30
views
How to install DraftJS plugins into a Wagtail site?
I would like to install the draft-js-prism plugin into my Wagtail 5.0 site. Unfortunately, my knowledge of how Draft.js and React work could be inscribed on the head of a pin, so I cannot wrap my head ...