#14088: Possible typo in Tutorial page #4
------------------------------------+---------------------------------------
          Reporter:  dustin         |         Owner:  nobody      
            Status:  closed         |     Milestone:              
         Component:  Documentation  |       Version:  SVN         
        Resolution:  invalid        |      Keywords:  Dev Tutorial
             Stage:  Unreviewed     |     Has_patch:  0           
        Needs_docs:  0              |   Needs_tests:  0           
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Changes (by kmtracey):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => invalid
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 Sounds like you did not include the trailing comma in the tuple. Note the
 doc has, for example:

 {{{
 #!python
 return HttpResponseRedirect(reverse('poll_results', args=(p.id,)))
 }}}

 The comma after `p.id` is required for the single-element tuple to be
 recognized by Python as a tuple, and thus a sequence. This is a standard
 Python gotcha, see: http://wiki.python.org/moin/TupleSyntax.

 (If the trailing comma is missing some place on that page, please point it
 out exactly; I'm not seeing any missing commas for the args to reverse.)

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14088#comment:1>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to