Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wagtail tutorial template location results in error #9837

Closed
spencerpro opened this issue Jan 2, 2023 · 2 comments
Closed

Wagtail tutorial template location results in error #9837

spencerpro opened this issue Jan 2, 2023 · 2 comments

Comments

@spencerpro
Copy link

In the tutorial "Docs:Getting started:Your first Wagtail site:Blog Index and Posts (https://docs.wagtail.org/en/v4.1.1/getting_started/tutorial.html#blog-index-and-posts) it states "To create a template for the BlogIndexPage model, create a file at the location blog/templates/blog/blog_index_page.html.", but that results inTemplateDoesNotExist error. Looking at the Template-loader postmortem, "Django tried loading these templates, in this order:" it does not include the path given in the turorial (above). If I move the template to one of the locations in the path, eg. mysite/home/templates or myrinath/myrinath/templates it works fine. Did I miss a step somewhere or is the tutorial wrong?

@allcaps
Copy link
Member

allcaps commented Jan 2, 2023

Is blog in installed apps?

Add the new blog app to INSTALLED_APPS in mysite/settings/base.py.

@thibaudcolas
Copy link
Member

👋 we have lots of people regularly running this tutorial so I’ll suspect the problem is what Coen just mentioned, and close this. In the future please provide the full logs for Django errors like this so it’s simpler for us to troubleshoot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants