Wagtail CMS: Registering Snippets using Django Models

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

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`
Installing Django Debug Toolbar with Wagtail CMS
13:33
Coding For Everybody
Рет қаралды 17 М.
Getting Started With Your First Home Page in Wagtail CMS
16:31
Coding For Everybody
Рет қаралды 65 М.
бесит старшая сестра!? #роблокс #анимация #мем
00:58
КРУТОЙ ПАПА на
Рет қаралды 2,8 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:19
CRAZY GREAPA
Рет қаралды 21 МЛН
Универ. 10 лет спустя - ВСЕ СЕРИИ ПОДРЯД
9:04:59
Комедии 2023
Рет қаралды 2,6 МЛН
My Initial Impresson Of Go
12:39
TheVimeagen
Рет қаралды 74 М.
How to Add a Basic StreamField to your Wagtail CMS Page
19:34
Coding For Everybody
Рет қаралды 26 М.
Scrum Master als Hobbypsychologe?! 😵 #shorts
1:00
Agile Heroes
Рет қаралды 23
Multi-tenant Architecture for SaaS
11:07
CodeOpinion
Рет қаралды 106 М.
Adding User Registration/Login To Your Wagtail Website
23:03
Coding For Everybody
Рет қаралды 15 М.
How to Add a New Wagtail CMS Page From Scratch
11:57
Coding For Everybody
Рет қаралды 22 М.
A Developer's Guide to SAML
27:47
OktaDev
Рет қаралды 172 М.
Dependency injection fundamentals in C# - DI vs IoC vs DIP
13:30
Amichai Mantinband
Рет қаралды 25 М.
NMFS Open Science Docker Stack: Launch in Codespace
5:22
EEHolmes-DataScience
Рет қаралды 17
бесит старшая сестра!? #роблокс #анимация #мем
00:58
КРУТОЙ ПАПА на
Рет қаралды 2,8 МЛН