#30762: Code detail error
-------------------------------------+-------------------------------------
               Reporter:  Fnanshan   |          Owner:  nobody
                   Type:             |         Status:  new
  Cleanup/optimization               |
              Component:             |        Version:  2.2
  Documentation                      |
               Severity:  Normal     |       Keywords:  beginners
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  1
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 In the link https://docs.djangoproject.com/en/2.2/intro/tutorial03/,
 'Writing more views ΒΆ "section, on the question of existing code.

 {{{
 def detail(request, question_id):
     return HttpResponse("You're looking at question %s." % question_id)

 def results(request, question_id):
     response = "You're looking at the results of question %s."
     return HttpResponse(response % question_id)

 def vote(request, question_id):
     return HttpResponse("You're voting on question %s." % question_id)
 }}}

 Index ()  method is not available in polls/views. py, where as

 {{{
  path(", views. Index, name='index')
 }}}

 It is available in polls/views.

 **
 It's easy for beginners to get confused.
 **

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30762>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.1fc818bb896fff3ce6dd5d80e0d95a00%40djangoproject.com.

Reply via email to