Opened 5 years ago
Closed 5 years ago
#30590 closed Cleanup/optimization (invalid)
Error in the documentation of the polling app.
Reported by: | Aditya Kumar | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Normal | Keywords: | Polling App, Documentation |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Here is the link of the page containing error:- https://docs.djangoproject.com/en/2.2/intro/tutorial03/#overview
According to my knowledge, for any project if we want to create a templates directory then it is created inside the root directory of the project.
But, here what I have found that in the polling app documentation, it is mentioned to create the directory inside the application folder.
In the documentation, the project is named as mysite and the app is named as polls.
For creating the templates file, the correct path would have to be /mysite/templates but the given path is /polls/templates.
Attachments (1)
Change History (2)
by , 5 years ago
Attachment: | django_bug.png added |
---|
comment:1 by , 5 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Version: | 2.2 → master |
Thanks for the report, however tutorial 03 works for me. Described configuration is absolutely correct, see By convention DjangoTemplates looks for a “templates” subdirectory in each of the INSTALLED_APPS.
.
Screenshot of th documentation page. The falsy part is boxed(underlined).