Henry Lynx
Henry Lynx

Reputation: 1129

New root page in wagtail

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

Upvotes: 2

Views: 3673

Answers (1)

gasman
gasman

Reputation: 25292

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.)

Upvotes: 8

Related Questions