Fix misleading wording - clarify that get_site_root is created, not used

pull/12520/head^2
Clifford Gama 2024-11-16 08:27:23 +02:00 zatwierdzone przez Matt Westcott
rodzic 791f031e16
commit ed084ae3bd
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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: