wagtail Questions
3
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 ...
2
The issue
I have an empty (migrated) postgres database to which I want to move the data from my sqlite database.
What I've tried
I export with
./manage.py dumpdata --exclude auth.permission -...
Semipalmate asked 7/1, 2018 at 22:3
1
Solved
I'm trying to run longclaw, but i get an error
$ python manage.py makemigrations catalog home
Traceback (most recent call last):
[...]
File "/lib/python3.7/site-packages/longclaw/basket/api....
Hinge asked 2/8, 2019 at 2:35
2
I want to make File Upload a possible Wagtail Form field type on form pages. How do I configure the models to make this possible? Please note I am more interested in allowing users to upload docume...
2
Solved
I recently implemented adding target="_blank" to external links like this:
@hooks.register('after_edit_page')
def do_after_page_edit(request, page):
if hasattr(page, "body"):
soup = BeautifulSou...
4
Solved
I'd like to reconfigure the default "Publish" menu. The default configuration is this:
I'd like to make Publish the default action, and move it to the top. I'd also like to remove Submit for Mod...
1
Solved
I've recently followed the Wagtail documentation for creating a Wagtail website with blog. I want to use a MySQL database instead of the sqlite3 database which it creates automatically. Python is a...
1
Solved
I am trying to programmatically create a PostPage object. This class inherits from wagtail's Page model:
post = PostPage.objects.create(
title='Dummy',
intro='This is just for testing dummy',
b...
2
Solved
I have a bunch of content in a Wagtail 2.0 rich text field that looks like
Page heading
(intro blurb)
heading 1
(heading-1-relevant text)
heading 2
(heading-2-relevant text)
...
and I would l...
Skinned asked 21/3, 2018 at 20:18
1
Solved
I am creating a blog site using the Wagtail CMS. I would like to display the Author avatar image whenever a new post is published. I am trying to render the image from this /admin/account/change_av...
Mahon asked 1/3, 2019 at 22:12
1
Solved
I would like to change the URL for a blog entry to include the slug for category (@route(r'^([category-slug]/[post-slug] - e.g. localost/health/health_blog_1).
How would I change the model for thi...
3
Solved
I'm fairly new to Wagtail, and I am in the process of creating a site that will have a Resources (blog) section and I'm not sure how to implement pagination so that there are only 5 posts on each p...
Rawlinson asked 1/11, 2016 at 17:36
2
Solved
I've got a wagtail site powered by Postgres and would like to implement a fuzzy search on all documents. However, according to wagtail docs "SearchField(partial_match=True) is not handled." Does an...
1
I can choose Page type (Page model) in Wagtail admin on creation. This feature is documented: http://docs.wagtail.io/en/latest/editor_manual/new_pages/selecting_a_page_type.html
Is it possible, th...
Circlet asked 13/10, 2017 at 18:46
1
Solved
I have uploading files to S3 working fine with my Wagtail/django application (both static and uploads). Now I'm trying to use ManifestStaticFilesStorage to enable cache busting. The urls are correc...
Incommunicado asked 13/9, 2018 at 8:40
0
I have around 10 posts and it is generating about 100 queries to fetch post tags. The taggit library Wagtail used underneath supportprefetch_related, but adding prefetch_related has no effect. Afte...
1
Solved
My company is evaluating Wagtail as a CMS for parts of our website. Currently we're running Python 2.7 and Django 1.5 (don't ask...). We have the ability to run Wagtail on a separate instance which...
1
Solved
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 ho...
Milium asked 30/5, 2018 at 16:38
1
Solved
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 wag...
1
Solved
How to do case insensitive string comparison?
In my case , i need to add a class menu_active when topic.title equals page.slug. but,now
topic.title= home
page.slug = Home
so my condition fail...
Jehol asked 28/4, 2018 at 7:17
1
Solved
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...
Pallette asked 19/3, 2018 at 23:34
1
Solved
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 "blo...
2
Solved
I want to create a BlogPage programmatically in wagtail with setting its StreamField value. I can set heading field. But I'm getting AttributeError: 'unicode' object has no attribute 'source' when ...
1
Solved
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...
3
Solved
I have a few questions about this thread: https://groups.google.com/forum/#!topic/wagtail-developers/Z4oaCIJXYuI
I am building a headless Wagtail, with a React-based frontend, that calls Wagtail A...
© 2022 - 2024 — McMap. All rights reserved.