Wagtail CMS: Registering Snippets using Django Models

  Рет қаралды 9,839

Coding For Everybody

Coding For Everybody

5 жыл бұрын

Snippets are Wagtails way of re-using existing data and storing little chunks of re-usable data. For example, being able to select a Blog Author (or multiple authors) instead of having to add a name, image and website for every blog author in every blog post you make; instead you can simply fill out a form once, and re-use the final data with a couple of clicks.
Tutorial: learnwagtail.com/tutorials/re...
Git Commit: github.com/CodingForEverybody...
Learn Wagtail from scratch with the official Wagtail for Beginners Course
learnwagtail.com/wagtail-for-...
Used in this video: Wagtail 2.4, Python 3.7, Django 2.1.5 #Wagtail #Django #Python

Пікірлер: 9
@rqdt1388
@rqdt1388 5 жыл бұрын
This is the best wagtail course I've ever seen. Thank you for amazing contribution.
@CodingForEverybody
@CodingForEverybody 5 жыл бұрын
This comment slipped past me! Thanks for the kind words RQ! :)
@xdobaj
@xdobaj 5 жыл бұрын
Couldn't agree more. Deserves way more subscribers. Keep up the good work :)
@redditcamp543
@redditcamp543 3 жыл бұрын
So we can also create BlogAuthors the way we made Subscribers, don't we?
@mindeyi
@mindeyi 4 жыл бұрын
Hmm. Looks very similar to "Registering Django Models with Wagtails ModelAdmin", but without search functionality. When to use which?
@CodingForEverybody
@CodingForEverybody 4 жыл бұрын
Technically you can use either. ModelAdmin is a little more professional and out in the open I find. But registering a Snippet allows you to select the model in a Snippet Chooser (in either a StreamField or Django model field)
@magdagaj
@magdagaj 4 жыл бұрын
Why in some models panels are called just 'panels' and in others 'content_panels'? I tried to keep it consistent but I was getting errors so I am sticking to the convention for the tutorials.
@CodingForEverybody
@CodingForEverybody 4 жыл бұрын
Good question. Pages have different types of panels, but regular Django Models only get `panels`
Wagtail CMS: Registering Snippets (Blog Category) using Checkboxes
18:09
Coding For Everybody
Рет қаралды 7 М.
How to Use ListBlocks in Wagtail CMS to Create Repeating StreamField Content
19:52
Khó thế mà cũng làm được || How did the police do that? #shorts
01:00
Я нашел кто меня пранкует!
00:51
Аришнев
Рет қаралды 3,9 МЛН
How to use Orderables in Wagtail CMS
22:42
Coding For Everybody
Рет қаралды 14 М.
Installing Django Debug Toolbar with Wagtail CMS
13:33
Coding For Everybody
Рет қаралды 17 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 177 М.
My Initial Impresson Of Go
12:39
TheVimeagen
Рет қаралды 76 М.
How to Add a Basic StreamField to your Wagtail CMS Page
19:34
Coding For Everybody
Рет қаралды 26 М.
Wagtail CMS: Adding Custom StreamField Logic
14:42
Coding For Everybody
Рет қаралды 6 М.