Headless CMS: Exposing Orderable Data and StreamFields

preview_player
Показать описание
In this tutorial you will learn how to add a Wagtail Orderable model fields to your Wagtail v2 API, and how to add StreamFields to your API response. As with everything in Wagtail, this is a simple task for developers.

Learn Wagtail from scratch with the official Wagtail for Beginners Course

Used in this video: Wagtail 2.4, Python 3.7, Django 2.1.5 #Wagtail #Django #Python
Рекомендации по теме
Комментарии
Автор

awesome vid. So pretty much, if its a wagtail model. just use the APIField and add the field by variable name or related name. But if its a django model, create a separate class from a wagtail model, connect it to the django model using a foreign key, and then create as many property variables as you need to add to the APIFields of the wagtail model.

AyazAmlani
Автор

Hey, just wanted to thank you for uploading these educational videos! You are awesome! :)

Betonstfu
Автор

👍How i can apply filter using /?auther_name=somename

yassinelhaddouti
Автор

You left something out in headless. What do you do in a streamfield with snippetchooser and images. How to expose this to the api?
BTW: Great tutorials

onnot