Django

Code

Ticket #1724 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

[magic-removal] [patch] Some corrections to tutorial01.txt

Reported by: Malcolm Tredinnick <malcolm@pointy-stick.com> Assigned to: adrian
Milestone: Component: Admin interface
Version: magic-removal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Sorry about this Adrian, but my suggestion to move to using str everywhere has backfired slightly. The output of the first tutorial has changed significantly (the thing returned at the Python prompt is the repr() unless you explicitly convert to strings or print it).

The attached patch fixed the results shown in the tutorial to match what happens; I ran through it quickly on the command line to check these, so they should be correct.

I have also fixed up a blunder at the very top: we were saying we were creating a blog app, rather than a poll. Not quite sure how that survived until now.

Attachments

tutorial01.txt.diff (3.6 kB) - added by Malcolm Tredinnick <malcolm@pointy-stick.com> on 04/30/06 01:05:02.
Fix output in examples.

Change History

04/30/06 01:05:02 changed by Malcolm Tredinnick <malcolm@pointy-stick.com>

  • attachment tutorial01.txt.diff added.

Fix output in examples.

04/30/06 01:06:07 changed by Malcolm Tredinnick <malcolm@pointy-stick.com>

By the way, the other tutorials are fine, because it is only in tutorial01.txt that the interactive prompt is shown.

04/30/06 09:11:31 changed by adrian

The "blog" mention at the top of the tutorial is no blunder. I'm rewriting it to be a blog app rather than a poll app.

05/04/06 22:11:44 changed by adrian

I think I'll change the default __repr__() to display the __str__() within <Poll object: "">. Thoughts?

05/18/06 07:41:27 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

(In [2937]) Fixed #1724 -- updated the output from the shell commands to match what we now produce.

10/24/06 15:17:18 changed by adrian

  • milestone deleted.

Milestone Version 0.91 deleted


Add/Change #1724 ([magic-removal] [patch] Some corrections to tutorial01.txt)




Change Properties
Action