Загрузка страницы

[Day 7] Adding global site settings

This is it. This is the last day of 7 Days of Wagtail. You've gotten so far and have learned a lot! Today we're going to add a global site setting to our Wagtail website. Global site settings are useful for things like social media links in the footer of your page. But you want them on EVERY page and probably don't want to copy-and-paste the same code onto every page template. With global site settings in Wagtail you can define and set custom fields and then access them globally. Why use this? Well.. because your website is dynamic. And so are things like Facebook links, YouTube links, Twitter handles and Instagram account names. And when those change, and surely they do, you'll want an easy way to change them across your entire website. Let's get started by adding a global instagram link to our Wagtail admin and base.html template. P.S. If you would like to join our Wagtail community, we have a free Slack you can join. Head on over to https://wagtail.io/slack to sign up. You can ask ANY Wagtail related question in our support channel, too.

Видео [Day 7] Adding global site settings автора Вячеслав Эм.
Показать
Информация
4 ч. 24 мин. назад
00:11:57
Яндекс.Метрика