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
5
votes
3 answers

How to override wagtail authentication?

When I attempt to access my wagtail back-office at /cms/, I get redirected to wagtail's login page, /cms/login/. However, I would like to use my own custom login, which is default for the rest of the site, and sits at /auth/. My LOGIN_URL is already…
Brachamul
  • 1,886
  • 2
  • 21
  • 34
5
votes
2 answers

Get parent page on creating new Wagtail Page

I need to change some field default value given a value from the parent page when creating a new page. When editing an existing page, this is not a problem, but when creating a new page, I need to set a default value for a field. I have tried…
Cheluis
  • 1,402
  • 3
  • 22
  • 51
5
votes
2 answers

Serving static and media files from S3 wagtail

We're going to start using S3 to host our static AND media files. Does anyone have a good link that describes how to do both with wagtail? We're on wagtail 1.9. I can't get both of them to work at the same…
vandekerkoff
  • 415
  • 8
  • 24
5
votes
1 answer

Add streamfield to search index in Wagtail

I struggle to add my streamfield to the wagtail search index. This affects boths the available or the custom blocks. From what I've found in the mailing list, a custom block should implement get_searchable_content which all blocks do. here is my…
elmcrest
  • 195
  • 11
5
votes
2 answers

Wagtail - how do I add extra form fields (not from page model) to admin page edit form and get wagtail rendering

This is what I tried. It works but the extra field text1 is rendered as a plain input field with no label and no cool wagtail rendering. How can I add extra fields to the form and get cool wagtail rendering please? Here is a link to the…
small mammal
  • 692
  • 5
  • 12
5
votes
4 answers

Wagtail indexing: Exclude some content or use queryset?

In Wagtail's documentation on ElasticSearch indexing, it seems that all instances of a given model are added to the index. But I'd like to exclude some (many) rows from being indexed, either by creating a QuerySet or by being able to set an exclude…
shacker
  • 14,712
  • 8
  • 89
  • 89
5
votes
1 answer

Puput (Wagtail based blog) - Where are the files?

I've added a puput blog to an existing Django project. I followed all the steps for setting up a standalone blog app (https://puput.readthedocs.io/en/latest/setup.html). It works fine in that I now have working blog at http://127.0.0.1:8000/blog/…
Wessi
  • 1,702
  • 4
  • 36
  • 69
5
votes
1 answer

Data migration of image model

Hi this is mostly a copy paste of a question asked in Google groups: Thanks to Wagtail docs, I was able to understand how to build a custom image model, BUT, as I have a website with more than 500 contents, I don't want to mess the whole thing up…
fabienheureux
  • 380
  • 2
  • 12
5
votes
1 answer

Custom Wagtail Sitemap

I'm attempting to create a custom Wagtail sitemap that includes 'changefreq' and 'priority'. The default is just 'lastmod' and 'url'. According to Wagtail docs (http://docs.wagtail.io/en/latest/reference/contrib/sitemaps.html) you can overwrite the…
kbdev
  • 1,225
  • 1
  • 13
  • 33
5
votes
1 answer

Wagtail: Can snippets have InlinePanel if the model has a ForeignKey relationship?

I've got the situation where a Wagtail snippet is a model that has a FK relationship. I can't figure out how to make that available in the CMS as an inline. Given: @register_snippet class TeamMember(models.Model): name =…
Bob Donahue
  • 189
  • 2
  • 9
5
votes
3 answers

How can I change the sidebar from Wagtail?

I'm following the Wagtail docs to create a navigation, but it's recommend to use based on 'Snippets', so I would like to change the sidebar to show "Navigation" or "Menu" instead of 'Snippets', is that possible? But when I use just like the docs…
Max Ferreira
  • 468
  • 1
  • 4
  • 19
4
votes
1 answer

Wagtail ModelAdmin cleaning and validating fields that depend on each other

In Django you can add a clean method to a form to validate fields that depend on each other: def clean_recipients(self): data = self.cleaned_data['recipients'] if "fred@example.com" not in data: raise ValidationError("You have…
allcaps
  • 10,945
  • 1
  • 33
  • 54
4
votes
0 answers

Why is my dockerized Django app so slow and shows ([CRITICAL] WORKER TIMEOUT)?

I'm trying to deploy a Django app in a Docker container. It works well but the first time I open a page I receive these messages: [CRITICAL] WORKER TIMEOUT [INFO] Worker exiting [INFO] Booting worker with pid: 19 The next time I open the same page…
Vincent Roye
  • 2,751
  • 7
  • 33
  • 53
4
votes
1 answer

Change Page owner in Wagtail admin

We have a Wagtail site where various people contribute to a news item before its published and the person who creates the page is not necessarily the main author. I'm looking for way to edit the Page.owner in the Wagtail admin. In the model class…
Zemogle
  • 584
  • 4
  • 16
4
votes
1 answer

Remove

tag from wagtail's richtext field

When you enter text within Wagtail's rich text editor in the Wagtail Admin without any styling (e.g bold, ul, italic), that text (when published) appears 'coated' or embedded in

tags. The text is also saved in the database with the

tags…

Alvindera97
  • 356
  • 1
  • 4
  • 15