Learn Wagtail Course

How to Add a 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:

    # ....

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.

Was this helpful to you?

Sharing is caring. Help the community by sharing this article.