New Wagtail Course! 🥳 The Ultimate Wagtail Developers Course

Tutorial Wagtail Version: 2.x

How to Add a New Wagtail Page From Scratch

In this video we're going to explore how to add a new app to our Wagtail CMS website, how to install it, and how to add the custom page model. We'll be creating a brand new Wagtail Page from scratch.

If videos aren't your cup of tea, the instructions to create a new app inside your Wagtail CMS site are below. Run these two commands in your terminal.

``` $ pipenv shell $ python3 manage.py startapp flex ```

Lastly you'll need to install the "flex" module into your Wagtail site. Open base.py and add 'flex', to your installed apps. It'll look something like this:

``` INSTALLED_APPS = [ 'home', 'search', 'flex', # .... ] ```

Then you can run your server with python3 manage.py runserver

Don't forget, when you create your new Page model, you'll need to run python3 manage.py makemigrations and python3 manage.py migrate

The Git Commit

If you want to see all the changes from this lesson, head on over to this GitHub commit.

Related tutorials

How to Add a Basic StreamField to your Wagtail CMS Page

Posted on

In this lesson we are going to learn how to add a basic StreamField to a a generic Wagtail CMS Page. We'll create a new app from scratch, and this StreamField will have a title and text (using StructBlock), a custom template, and it will lay the foundation for the next lesson which covers inheriting RichTextBlock and modifying the features it can have.

View lesson, How to Add a Basic StreamField to your Wagtail CMS Page

How to Add a RichText StreamField to your Wagtail CMS Page

Posted on

In this video we are going to learn how to create a RichTextBlock StreamField, and then we're going to duplicate that StreamField and limit the number of features the editor gives us.

View lesson, How to Add a RichText StreamField to your Wagtail CMS Page

How to Add a Blog Listing Page, Blog Detail Page, and Custom Context

Posted on

In this (long) lesson we're going to cover three main topics. They all go hand-in-hand with Wagtail CMS so it makes sense to learn them all together. The three topics are: Listing Pages, Detail Pages and Adding Custom Context to your pages.

View lesson, How to Add a Blog Listing Page, Blog Detail Page, and Custom Context

How to Add Template Caching

Posted on

Wagtail is a fast CMS. It's built largely for performance, which is why a lot of beautiful features are not enabled by default. In this lesson we're going to take a look at database queries and template fragment caching to speed up our load times (page performance).

View lesson, How to Add Template Caching

The Ultimate Wagtail Developers Course

This course covers everything from basic installation to advanced features like custom blocks and API integration, it's perfect for developers looking to enhance their skills with this powerful CMS.

Ultimate Wagtail Developers Course Logo