stale content type message at migrate; beginner stuck in "Your first Wagtail site" tutorial

35 views
Skip to first unread message

Jared Nielsen

unread,
Nov 30, 2016, 8:40:58 AM11/30/16
to Wagtail support
Hello,
I'm working through the "Your first Wagtail site" tutorial and getting the following message when, as a final step, I run migrate:

The following content types are stale and need to be deleted:

    blog | blogpage

Any objects related to these content types by a foreign key will also
be deleted. Are you sure you want to delete these content types?
If you're unsure, answer 'no'.

    Type 'yes' to continue, or 'no' to cancel: yes

What do I do here? If I select 'yes', it removes the blog I just created. Is there something I need to be aware of if I select 'no'?

Matthew Westcott

unread,
Nov 30, 2016, 4:22:14 PM11/30/16
to wag...@googlegroups.com
Hi Jared,

It will always be safe to answer 'no' to that question - it just means that there's an unused record left behind in the database. This shouldn't be happening while the `class BlogPage(Page):` definition still exists in blog/models.py, though...

Taking a closer look at the tutorial, I think I can see what's happened - at the 'Related Items' section, I suspect you've probably copied the code listing directly. The '# ...' line really means that you should keep the BlogPage definition intact at that point. We've updated the tutorial for the next release of Wagtail - I'll make sure this is made clearer.

Cheers,
- Matt
Reply all
Reply to author
Forward
0 new messages