How to use Orderables in Wagtail CMS

  Рет қаралды 14,953

Coding For Everybody

Coding For Everybody

Күн бұрын

Discover how to use Djangos Inline Models within a Wagtail Page in a feature called Orderable. Orderables let you add moveable content to your page without needing a StreamField. In this video, we'll create a Bootstrap 4 Image Gallery on our Home Page model using an Orderable.
The Learn Wagtail tutorial: learnwagtail.c...
The Gist of it: gist.github.co...
The Full Git Commit: github.com/Cod...
Learn Wagtail from scratch with the official Wagtail for Beginners Course
learnwagtail.c...
Used in this video: Wagtail 2.4, Python 3.7, Django 2.1.5 #Wagtail #Django #Python

Пікірлер: 27
@philippgeisler4590
@philippgeisler4590 4 жыл бұрын
Hey Kalob, Usually I have a strong aversion against tutorial videos, because people blow up three lines of actual content to 15 minutes of pure gibberish garnished with an annoying 5-minute intro. In contrast to this waste of lifetime there is a real benefit from watching your videos! For me as a non-native speaker, it is a joy to listen to you. Thank you!
@CodingForEverybody
@CodingForEverybody 4 жыл бұрын
Thank you! That's what I strive for, I also really dislike that. Like why does someone need a 5 minute intro when the title typically sums it up? ¯\_(ツ)_/¯
@ShaffleOne
@ShaffleOne 4 жыл бұрын
6:29, thank you Kalob! It felt like a year has passed since I noticed it
@ShaffleOne
@ShaffleOne 4 жыл бұрын
Damn Wagtail is the best CMS and a Django app for me now! I freacking love MultiFieldPanels.
@23Ranocchia
@23Ranocchia 5 жыл бұрын
Hey, I'm learning Wagtail with your course ! That's really good and I'm doing a lot of progress ! Thank you so much !
@CodingForEverybody
@CodingForEverybody 5 жыл бұрын
Glad you're enjoying these videos Damiano! :D
@boryskuczkowski
@boryskuczkowski 5 жыл бұрын
Great stuff, wagtail is very blog friendly.
@CodingForEverybody
@CodingForEverybody 5 жыл бұрын
Yes, it really is blog friendly. It's also large-application friendly. Because it's built on Django, you can write regular Django models and manage them directly in Wagtail, too. I've made a few applications that are pretty big that have payments, subscriptions, etc. using just Wagtail.
@boryskuczkowski
@boryskuczkowski 5 жыл бұрын
@@CodingForEverybody It seems wagtail is almost like a golden mean where you can easily develop back and front end. As far as payments and subscriptions are concerned - I hope you'll dive into these in your videos :)
@CodingForEverybody
@CodingForEverybody 5 жыл бұрын
@@boryskuczkowski I have a lot of ground to cover in this tutorial series first, but I'm hoping to eventually get into bigger features like payment integration :)
@kemosabe5120
@kemosabe5120 Жыл бұрын
This is awesome. Wish you would update for Wagtail 3 +, I can't even build the virtualenv with these older requirements Wagtail 2.8 won't install due to some issue with pillow)
@schoelwurst3249
@schoelwurst3249 5 жыл бұрын
I love this tutorial series! Big thanks. But I would like to increase a html template class by one each loop. Is this possible?
@schoelwurst3249
@schoelwurst3249 5 жыл бұрын
nevermind I found the solution {{ forloop.counter }}
@gokickrocks3830
@gokickrocks3830 3 жыл бұрын
Can this be applied to a custom django function based view, i have a custom view that would really use some of that wagtail image management magic?
@helderandrade1476
@helderandrade1476 5 жыл бұрын
hello! how can we add more items like title, description on the frontpage? in the loop, apreciate the support :D
@Atimska
@Atimska 4 жыл бұрын
Can also use forloop.first
@boasorte6808
@boasorte6808 2 жыл бұрын
At minute 6:17, the terminal shows me the following error WARNINGS: home.HomePageCarousel: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'. Everything works the same, but I'm worried about the warning because I'm doing a project with these tutorials, thanks kalob!
@boasorte6808
@boasorte6808 2 жыл бұрын
class HomePageCarousel(Orderable): id = models.AutoField(primary_key=True)
@keipidesu
@keipidesu 5 жыл бұрын
Hi! Thanks for this tutorial! I've encountered a bump though.. the carousel images only show on my Preview (in admin page) and not during Live. Any idea on what the problem is?
@CodingForEverybody
@CodingForEverybody 5 жыл бұрын
Did you "Publish" the page, or just "Save Draft"?
@brahimmzoughi5062
@brahimmzoughi5062 4 жыл бұрын
@@CodingForEverybody & @Keipidesu , i have the same all things works in the back end but nothing showing in the home page , thanks for help
@vladyslavkalyuzhnyy6556
@vladyslavkalyuzhnyy6556 4 жыл бұрын
Hi! Thx you for your tutorial! I got some error: Unknown field(s) (carousel_images) specified for HomePageCarouselImages How can i fix that? Thx !
@CodingForEverybody
@CodingForEverybody 4 жыл бұрын
You dont have a model field named "carousel_images", or you do and you havent run python manage.py makemigrations yet (most likely)
@vladyslavkalyuzhnyy6556
@vladyslavkalyuzhnyy6556 4 жыл бұрын
@@CodingForEverybody Thx you for your answer! Could you make tutorial for two language switchers? It will be a great idea for a new video!) Or e-commerce wagtail with checkout and products)
@masumbillal5792
@masumbillal5792 5 жыл бұрын
Yeah Orderables is more usefull
@CodingForEverybody
@CodingForEverybody 5 жыл бұрын
Orderables make Django Inline Models so much nicer to work with!
@edisonarango
@edisonarango 3 жыл бұрын
But it seems they are not reusable within different page types!
How to Add Routable Pages to your Wagtail CMS Website
24:27
Coding For Everybody
Рет қаралды 12 М.
Adding Global Site Settings to Your Wagtail CMS Website
16:43
Coding For Everybody
Рет қаралды 10 М.
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 11 МЛН
Win This Dodgeball Game or DIE…
00:36
Alan Chikin Chow
Рет қаралды 43 МЛН
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 73 МЛН
Wagtail CMS: Adding an Email Contact Form and Landing Page
26:16
Coding For Everybody
Рет қаралды 14 М.
Wagtail CMS: How to Create a Custom Wagtail Menu System
38:22
Coding For Everybody
Рет қаралды 20 М.
Registering Django Models with Wagtails ModelAdmin
12:17
Coding For Everybody
Рет қаралды 13 М.
How to Use ListBlocks in Wagtail CMS to Create Repeating StreamField Content
19:52
Creating a Call to Action StreamField in Wagtail CMS using a StructBlock
18:53
Coding For Everybody
Рет қаралды 11 М.
Installing Django Debug Toolbar with Wagtail CMS
13:33
Coding For Everybody
Рет қаралды 17 М.
Wagtail CMS: Registering Snippets (Blog Category) using Checkboxes
18:09
Coding For Everybody
Рет қаралды 7 М.
How to Add a Basic StreamField to your Wagtail CMS Page
19:34
Coding For Everybody
Рет қаралды 26 М.
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 11 МЛН