Tutorial Summary

In this video we'll go over upgrading your Wagtail website from v2.4 to v2.5.1 and we'll upgrade Django from 2.1.5 to 2.2.2. As a bonus, we'll explore an issue with Django Debug Toolbar.

To upgrade your own project, you can simply run these commands:

  1. pip install wagtail==2.5.1
    This will give you Wagtail v2.5.1
  2. pip install Django==2.2.2
    This will give you Django 2.2.2
  3. pip install django-debug-toolbar==2.0a1 (Debug Toolbar is optional)
    This will upgrade DDT (Django Debug Toolbar, if you're using it)
  4. python manage.py migrate
    Wagtail 2.5.1 and Django 2.2.2 have migrations to run. So let's apply them.
  5. python manage.py runserver 0.0.0.0:8000
    Re-run your server to make sure there are no problems
The Git Commit

The requirements.txt and Pipfile were updated. And I've added a Pipfile.lock to the repo. We also disabled Django Debug Toolbar because it's ultra slow.

https://github.com/CodingForEverybody/learn-wagtail/commit/4efc0639b89261cdb99ca6fdf3c4a974a4ad2493

Sign up for our newsletter

Get notified about new lessons :)


Our Sites