Opened 19 months ago
Last modified 14 months ago
#34499 closed Cleanup/optimization
In tutorial part08, Django debug toolbar shows up in admin site but not in public site — at Version 5
Reported by: | lucaremdev | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 4.2 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
If you are a newbie like me and follow exactly the django tutorial, when you get to part 8, then you don't understand why Django debug toolbar shows up in admin site (http://127.0.0.1:8000/admin/) but not in public site (http://127.0.0.1:8000/polls/).
As mentioned on django discord here, the solution consists in making each template a full HTML document with a body element for the debug toolbar to show up in the public site as well.
So, you could either show full HTML documents with body elements from the beginning in the tutorial,
or
in this part of the tutorial, after this sentence "Once installed, you should be able to see the DjDT “handle” on the right side of the browser window when you refresh the polls application.", you could add something like: "note that for the django debug toolbar to show up correctly, you should properly make each template a full HTML document, as we mentioned it to be best practice earlier".
These are just suggestions of course! Do as it seems better for the whole community!
And thank you anyway =)
Change History (5)
comment:1 by , 19 months ago
Description: | modified (diff) |
---|
comment:3 by , 19 months ago
Description: | modified (diff) |
---|
comment:4 by , 19 months ago
Component: | Uncategorized → Documentation |
---|---|
Summary: | Cannot create a new ticket → In tutorial part08, Django debug toolbar shows up in admin site but not in public site |
Type: | Uncategorized → Cleanup/optimization |
comment:5 by , 19 months ago
Description: | modified (diff) |
---|