Opened 3 hours ago
Closed 3 hours ago
#36214 closed Uncategorized (invalid)
https://github.com/django/django/blob/main/docs/intro/tutorial02.txt seems to be missing a small bit compared to the website
Reported by: | dj-user-10 | Owned by: | |
---|---|---|---|
Component: | Documentation | Version: | 5.1 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
Am I missing something? Or is
https://github.com/django/django/blob/main/docs/intro/tutorial02.txt
missing a small piece around line 356:
The website docs:
https://docs.djangoproject.com/en/5.1/intro/tutorial02/
has the line:
`
from polls.models import Choice, Question # Import the model classes we just wrote.
`
but it seems to be missing in:
https://github.com/django/django/blob/main/docs/intro/tutorial02.txt
is this the file powering the website's docs or is it somewhere else?
Apologies if this is a stupid question!
I recommend you check the git history when investigating this.
This was removed in fc28550fe4e0582952993976edc62971bd5345a8 as models are now automatically imported.
The docs you are linking to are the 5.1 docs, if you change to see the docs for 5.2 or dev you will see that the imports are no longer there (https://docs.djangoproject.com/en/5.2/intro/tutorial02/)
It isn't a stupid question.
However, the issue tracker is not the right place to ask these kind of questions. Please use our support channels for such question in future 🙂