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
1 answer

Having a 404 for each site in a Wagtail multisite setup

I'm trying to get two different Wagtail sites to have their own 404 pages, but there does not appear to be a way to specify which page to use as 404 page in a "site" config in the wagtail "settings" => "sites" section, and I can't seem to get the…
Mike 'Pomax' Kamermans
  • 49,297
  • 16
  • 112
  • 153
5
votes
1 answer

How do I customize the Wagtail page copy experience?

I have some custom logic (complex unique constraint validation) I would like to check when a user attempts to copy (or move) a certain type of Page in Wagtail. I would also like to give the user an opportunity to change the fields associated with…
Colin
  • 309
  • 2
  • 5
  • 15
5
votes
1 answer

How to preview a Wagtail page with translated fields in different languages?

I have a multi-language Wagtail website with two languages (English and German) using duplicated fields in my page models, e.g. a text block has two fields, text_de and text_en, and I define text as a translated field following the example in the…
Kristin
  • 155
  • 4
5
votes
1 answer

Why am I getting this PicklingError?

I'm working on a Python/Django/Wagtail project, and I have some api to return some paginated articles. It goes like this: In URLs: url(r'^morearticles/', views.get_live_articles), In Views: def get_live_articles(request): context = {'articles':…
Pablo Viacheslav
  • 873
  • 1
  • 8
  • 15
5
votes
1 answer

Django storages S3 - Store existing file

I have django 1.11 with latest django-storages, setup with S3 backend. I am trying to programatically instantiate an ImageFile, using the AWS image link as a starting point. I cannot figure out how to do this looking at the source / documentation.…
Giannis
  • 5,286
  • 15
  • 58
  • 113
5
votes
1 answer

How to change protocol to https on wagtail sitemaps?

I have a django sitemap and wagtail sitemap for my site. The django sitemap is using https by simply setting the protocol variable in the class, but I can't figure out a way to do this for the wagtail sitemap without overriding many internal…
Zach B.
  • 663
  • 1
  • 7
  • 17
5
votes
0 answers

Migrating Wagtail data between environments

I'm trying to move data from our QA servers to production (or dev->local, qa->dev, etc.) with the Django dumpdata and loaddata commands. I've successfully got things exported that have no foreign dependencies, like so: python manage.py dumpdata…
Michael Volo
  • 314
  • 3
  • 13
5
votes
1 answer

Cannot make a model @property def-as-field work with wagtail 2.0

I'm using Wagtail 2.0 with a custom Block that has the following code: class LinkButtonBlock(blocks.StructBlock): label = blocks.CharBlock() URL = blocks.CharBlock() styling = blocks.ChoiceBlock( choices=[ …
Mike 'Pomax' Kamermans
  • 49,297
  • 16
  • 112
  • 153
5
votes
1 answer

how to redirect from HomePage(Page) to your custom app model

I've created an app "Blog". In my app I've got several models including "BlogIndex(Page)". When I run local server I find myself at "home_page.html". What I want is to start my local server at "blog_index.html". I know that I can set a root page at…
madjack99
  • 103
  • 8
5
votes
1 answer

wagtail pages vs using django views and urls

When and where should I use wagtail pages and when should I write my custom urls and views using django? for example should I create pages for user profiles or should I add a urlpattern for profile and write profile logic in a django view?
Jahan
  • 363
  • 6
  • 16
5
votes
2 answers

Wagtail admin - default ordering of child pages

In the admin area I have to activate the "Enable ordering of child pages" every time. Is there a way to set this as a permanent option? The main problem is that the listing in the child pages view changes depending on if this is activated or not(if…
ladrua
  • 415
  • 5
  • 16
5
votes
1 answer

Wagtail getting/generating image urls from JSON api or directly

I've been using Wagtail as a headless CMS to use with a frontend application, However I noticed some limitations regarding images. Normally in your jinja template you would generate the correct image size you need and all is fine, However I don't…
Samuel
  • 540
  • 1
  • 4
  • 17
5
votes
1 answer

Wagtail Admin Images Crash

Since I updated my production setup to Wagtail 1.11 I cannot load the admin page for images. Visiting /admin/images/ results in a 502 error. In my development setup I don't have the same problem This is the result of a crash of the runner. The…
Dekker1
  • 5,565
  • 25
  • 33
5
votes
2 answers

How to reverse urls in Wagtail?

I have a Django site which contains a blog. To get it up and running quickly I just added some static blog posts using Django's TemplateView. I have now added Wagtail and set up a blog platform using that. The problem I now have is linking to blog…
wobbily_col
  • 11,390
  • 12
  • 62
  • 86
5
votes
1 answer

How to join wagtail and django sitemaps?

I'm using wagtail app in my Django project. Is it possible to join django sitemaps (https://docs.djangoproject.com/en/1.11/ref/contrib/sitemaps/) with wagtail sitemaps (wagtail.contrib.wagtailsitemaps)? Tried using django sitemap indexes, but it…
vyckiuz
  • 157
  • 10