Opened 12 years ago

Closed 12 years ago

#20035 closed Uncategorized (invalid)

Last block of commands in python shell show wrong text "What's new?" should be "What's up?"

Reported by: Null Owned by: nobody
Component: Documentation Version: 1.5
Severity: Normal Keywords: doc 1.5
Cc: Null.Jared@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

last block is shown in the doc as:

# Make sure our __unicode__() addition worked.
>>> Poll.objects.all()
[<Poll: What's up?>]

All the "What's up" should actually be "What's new?" in the doc:

# Make sure our __unicode__() addition worked.
>>> Poll.objects.all()
[<Poll: What's new?>]

Also from the start of the doc it would be nice to mention that Python will let you mix tabs and spaces for indentation but this can lead to problems if care is not taken, and possibly a vim configuration suggestion or editor note.

https://docs.djangoproject.com/en/1.5/intro/tutorial01/

Change History (1)

comment:1 by Claude Paroz, 12 years ago

Resolution: invalid
Status: newclosed

A little above, you will see that the "Whats' new?" string content has been changed to "Whats' up?":

# Change values by changing the attributes, then calling save().
>>> p.question = "What's up?"
>>> p.save()

Therefore I think the current tutorial content is fine.

Note: See TracTickets for help on using tickets.
Back to Top