Headless Wagtail CMS: Serializing Child Pages (Serializing a QuerySet)

  Рет қаралды 2,257

Coding For Everybody

Coding For Everybody

Күн бұрын

Tutorial: learnwagtail.com/tutorials/he...
Wagtail for Beginners Course: learnwagtail.com/wagtail-for-...
In this video we'll explore serializing a Wagtail Page QuerySet. Or in other words.. we'll add all the blog pages to the blog listing page API response. This can be very helpful for Listing pages in your Headless Wagtail website.
There are a several different ways to get a listing view of your blog detail pages, but in this tutorial we'll dig into creating a custom serializer to display child page data automatically.
For more free tutorials: learnwagtail.com/tutorials/
Don't forget to subscribe to this channel and follow me on Twitter at / kalobtaulien
Git Commit: github.com/CodingForEverybody...
#Wagtail #Django #Python

Пікірлер: 7
@Cadmeus
@Cadmeus 4 жыл бұрын
Really nice explanation of how to expose query sets in the API, thank you.
@concrete4054
@concrete4054 4 жыл бұрын
Great video series. I am learning django with wagtail right now and you are the best teacher! Could you make a tutorial about how a user who's not logged in can create a blogpost using streamfields? So they vistit the normal site, click "create post" and then have all the abilities you have in wagtail without the left bar and personalized html /css. Thank you and please keep going!
@concrete4054
@concrete4054 4 жыл бұрын
Are you planning to do it? Like outside the admin Thay woyld be awesome☺👍😊
@alterX2ego
@alterX2ego 4 жыл бұрын
fire!! :D
@tiwale6387
@tiwale6387 4 жыл бұрын
This is a very nice series. What is the difference between the videos you put on youtube and the ones offered in your course? Also, You have a lot of code on github, but we do not know what to do with them when they are downloaded. Can you go over downloading a wagtail repository and set it up in Django? Thanks...
@CodingForEverybody
@CodingForEverybody 4 жыл бұрын
Hey there. The difference between the videos here and the course are that these are free tutorials that aren't produced in any order anymore, and don't take you from A to Z for launching a Wagtail website. Whereas the course offers that, and shows you how to setup a server from scratch with gunicorn and nginx, and we go more in depth into certain subjects like caching. For GitHub, you can clone to repo (I have Git and GitHub tutorials on KZbin as well), cd into your directory, setup a new virtual env (I have a Wagtail video on this) and then run `pip install -r requirements.txt` while inside of your virtual environment.
@onnot701
@onnot701 4 жыл бұрын
why not make a serializer so you can use PostSerializer(queryset, many=True) at any place. If you then have one item you can use PostSerializer(queryset)
Headless Wagtail CMS: Serializing RichText Stream Blocks
10:57
Coding For Everybody
Рет қаралды 3,3 М.
Wagtail CMS: Registering Snippets using Django Models
13:35
Coding For Everybody
Рет қаралды 10 М.
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 154 МЛН
Tom & Jerry !! 😂😂
00:59
Tibo InShape
Рет қаралды 62 МЛН
The day of the sea 🌊 🤣❤️ #demariki
00:22
Demariki
Рет қаралды 100 МЛН
Wagtail CMS: Adding Pagination
16:34
Coding For Everybody
Рет қаралды 5 М.
Swift API Calls for Beginners (Networking) - Async Await & JSON
25:35
Tutorial: Headless Wagtail on Google Cloud
26:45
Wagtail
Рет қаралды 172
🚀  TDD, Where Did It All Go Wrong (Ian Cooper)
1:03:55
DevTernity Conference
Рет қаралды 552 М.
Django Rest Framework API #31 / Improve API Response Using Pagination
7:04
A beautiful math question for advanced students
10:38
Higher Mathematics
Рет қаралды 15 М.
Wagtailify Your Static Website: Child Pages and StreamField Introduction
15:33
Pagination in Server Components | NextJs 13
21:26
Hamed Bahram
Рет қаралды 19 М.
Wagtailify Your Static Website: Global Navigation using a Templatetag
13:29