#22836: Issue on the code in the documentation
--------------------------------------+------------------------------------
     Reporter:  anonymous             |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Documentation         |                  Version:  1.6
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  1                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Changes (by bmispelon):

 * needs_docs:   => 0
 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * easy:  0 => 1
 * stage:  Unreviewed => Accepted


Comment:

 Hi,

 Do you mean that the `import` statements are missing at the top of the
 code?

 As mentionned in the introduction at the top of the page, part 5 of the
 tutorial builds on part 4 where the `IndexView` should have been defined
 already and that part has all the correct imports from what I can tell:
 https://docs.djangoproject.com/en/1.6/intro/tutorial04/#amend-views

 I'm not sure that reproducing all the imports in this section of part 5
 would be so beneficial (but I'm open to hear your point of you if you
 disagree).

 However, I think there's one simple improvement we could make:

 In the section you linked to, the "Tutorial 4" link points to the top of
 the page, but it could be easier for the reader if it pointed to the
 paragraph where the view has been defined, which is this one:
 https://docs.djangoproject.com/en/1.6/intro/tutorial04/#amend-views


 So I'm going to mark this ticket as `accepted` for this reason.

 Thanks for your feedback!

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22836#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.532c0da3e2221b8efcc52c2a92dd3280%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to