[Django] #36214: https://github.com/django/django/blob/main/docs/intro/tutorial02.txt seems to be missing a small bit compared to the website

4 views
Skip to first unread message

Django

unread,
Feb 25, 2025, 4:14:33 AM2/25/25
to django-...@googlegroups.com
#36214: https://github.com/django/django/blob/main/docs/intro/tutorial02.txt seems
to be missing a small bit compared to the website
----------------------------+-----------------------------------------
Reporter: dj-user-10 | Type: Uncategorized
Status: new | Component: Documentation
Version: 5.1 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
----------------------------+-----------------------------------------
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!
--
Ticket URL: <https://code.djangoproject.com/ticket/36214>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 25, 2025, 4:25:56 AM2/25/25
to django-...@googlegroups.com
#36214: https://github.com/django/django/blob/main/docs/intro/tutorial02.txt seems
to be missing a small bit compared to the website
-------------------------------+--------------------------------------
Reporter: dj-user-10 | Owner: (none)
Type: Uncategorized | Status: closed
Component: Documentation | Version: 5.1
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Sarah Boyce):

* resolution: => invalid
* status: new => closed

Comment:

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/)

> Apologies if this is a stupid question!

It isn't a stupid question.
However, the issue tracker is not the right place to ask these kind of
questions. Please use our [https://docs.djangoproject.com/en/dev/faq/help
/#how-do-i-do-x-why-doesn-t-y-work-where-can-i-go-to-get-help support
channels] for such question in future 🙂
--
Ticket URL: <https://code.djangoproject.com/ticket/36214#comment:1>
Reply all
Reply to author
Forward
0 new messages