New root page in wagtail

3.4k views Asked by At

I want to change the Root page in Wagtail.

  1. I have deleted the default home page
  2. Created another page assigned "home" as slug.
  3. Created a template my_page_name_home.html

But I am getting 404 all the time when I try http://localhost:8000/. Do I have to change the urls.py patterns?

I am doing this because of Wagtailtrans add-on. In order to work i have to redirect away from the homepage to my new page ot type TranslatableSiteRootPage

1

There are 1 answers

1
gasman On BEST ANSWER

You need to go to Settings -> Sites in the Wagtail admin, and add a site record to associate 'localhost' to your new homepage. (A site record for this exists on the default installation, but this would have been deleted when you deleted the default homepage.)