From ed084ae3bd642c5a33b734475fc933579ba15a5f Mon Sep 17 00:00:00 2001 From: Clifford Gama Date: Sat, 16 Nov 2024 08:27:23 +0200 Subject: [PATCH] Fix misleading wording - clarify that get_site_root is created, not used --- docs/tutorial/set_up_site_menu.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/set_up_site_menu.md b/docs/tutorial/set_up_site_menu.md index 8fb97d80c4..f5d045f653 100644 --- a/docs/tutorial/set_up_site_menu.md +++ b/docs/tutorial/set_up_site_menu.md @@ -21,7 +21,7 @@ def get_site_root(context): return Site.find_for_request(context["request"]).root_page ``` -In the preceding code, you used the `get_site_root` template tag to retrieve the root page of your site, which is your `HomePage` in this case. +In the preceding code, you created the `get_site_root` template tag to retrieve the root page of your site, which is your `HomePage` in this case. Now, create `mysite/templates/includes/header.html` file and add the following to it: