wagtail Questions
2
By default, wagtail's StreamField looks something like this in the admin for empty fields, showing the different blocks available for the user:
I would however prefer it to contain a block of my ...
Cali asked 6/3, 2019 at 10:5
4
Solved
I use parent_page_types and subpage_types happily all around my Page-models.
But I'm stuck at allowing my class HomePage(Page) only as a direct child at root level.
Any hints?
Hypercriticism asked 11/5, 2016 at 16:2
6
Solved
pageurl can do it with a Page object, but I am not sure how to get the root page object.
Harrus asked 11/7, 2018 at 22:48
4
I would like to create programatically a sub page for a known parent. How can I do that? The page creation will takes place in a signal receiver: the page is created on publication of another page....
Barbaric asked 27/3, 2017 at 7:13
3
I am thinking about migrating an existing webpage to wagtail. However, a major part of the page are image galleries, with a total of some thousand images and some hundred galleries. Furthermore, th...
Caliche asked 21/2, 2017 at 23:58
5
Solved
I'm using a Django-Compressor Filter as part of Wagtail (Django variant CMS with super cool UI). Environment is Wagtail 0.2 + Python 2.7 + Django 1.6 + Virtualenv + FastCGI + Apache shared hosting....
Selfabsorption asked 19/3, 2014 at 18:56
3
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 ...
Juniper asked 19/6, 2017 at 18:14
2
Solved
I have a page with one StreamField body and a custom block named HeadingBlock:
class HeadingBlock(blocks.StructBlock):
heading = blocks.CharBlock()
cssid = blocks.CharBlock()
...
class CustomP...
Pili asked 15/11, 2016 at 14:42
1
I’m trying to add a conditional field to a wagtail page type model, the conditional fields may look like as shown in the below image. There are two fields, Question and Answer. The Answer field val...
2
I am using wagtails' ModelAdmin module ( not the same as Django ModelAdmin) to add a custom Order model to the wagtail admin.
This model has a foreign key to a custom Address model.
I would like...
Rhetor asked 10/1, 2017 at 10:53
4
I'm following the Wagtail documentation to customize the user model. I want to add an image to the user model.
Django version: 2.0.8,
Wagtail version: 2.1
Problem
After choosing an image with th...
Radiothorium asked 30/8, 2018 at 10:30
3
I have a Django website with 3 environments (Local, Staging, Production).
Production contains some data that I don't want my developers to have access to (Personal data and financial data of users...
Planking asked 2/6, 2017 at 2:37
5
Solved
I'm getting an error when performing a migration after introducing a new app (django-allauth). I'm not sure what else to try in order to fix the error. I've tried a few things but they don't seem t...
Gawlas asked 2/12, 2014 at 23:35
2
Solved
I've started getting this error from a Google Maps widget within a CMS I use:
This API key is not authorized to use this service or API. Places API error: ApiTargetBlockedMapError
The error messa...
Bojorquez asked 18/4, 2020 at 18:22
5
Solved
I'm creating a page with wagtail where I need to know the previous and next sibling of the current page:
In my portrait page model, I tried to define two methods to find the correct urls, but I'm ...
2
Solved
In the model below I want to make the bottom_content field in its entirety not required. How can I do this?
class ServicePage(Page):
top_content = StreamField(default_blocks + [
('two_columns', ...
Bipolar asked 16/11, 2017 at 18:37
3
Currently I'm deploying a Wagtail project. It seems everything working fine so far but there is one issue I can't get rid of. When I'm trying to access the Wagtail admin url I get an internal serve...
Mulvey asked 11/3, 2016 at 17:0
4
Solved
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 cre...
2
Solved
Building a custom template for the wagtail StreamField block I found myself in the situation that I need somehow pass the ID of the current block to the other views.
For instance when the URL is c...
Kellykellyann asked 20/3, 2018 at 17:20
3
Solved
I have a few apps in my Wagtail project and one of them is "news" which contains News(Page). I want to overwrite the title's label "title" to "headline" in the admin.
News._meta.get_field("title")...
Spates asked 11/12, 2019 at 16:15
2
Solved
I am building custom AdminModels based on Wagtail Snippets and have a custom menu in the AdminPanel for my models. How do I hide/remove the Snippet selection from AdminPanel without disabling? Than...
Subtorrid asked 16/2, 2017 at 2:8
0
I have a handful of entries that each has dozens of "tags" when I try to fetch that data it causes hundreds of queries. While using prefetching works on all of my other models and links, it does no...
Dahlia asked 19/5, 2020 at 6:22
1
How do I create my custom home page at the root level for my site?
I'm integrating wagtail to my django project. As documented I try to plug my custom homepage model and create a new site record
...
Compartment asked 29/11, 2017 at 9:17
1
These models allow me to establish multiple human "editors" for a tool:
class ToolPageEditors(models.Model):
person = models.ForeignKey('people.UserProfile')
page = ParentalKey('ToolPage', relat...
1
Solved
We have a setup with a Blog model that has a manytomany relation for BlogPageCategory, and we have a "recent blog posts" streamfield block that lets you specify whether to show cards for X latest b...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.