#14088: Possible typo in Tutorial page #4
---------------------------+------------------------------------------------
 Reporter:  dustin         |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Documentation  |     Version:  SVN       
 Keywords:  Dev Tutorial   |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 Following the introductory tutorial:

 [http://docs.djangoproject.com/en/dev/intro/tutorial04/#intro-tutorial04
 http://docs.djangoproject.com/en/dev/intro/tutorial04/#intro-tutorial04]

 The example showing the {{{view()}}} function calls the {{{reverse()}}}
 function passing a tuple as the "args" argument.  This seemed to generate
 the following error from Django:


 {{{
 "reverse() argument after * must be a sequence, not long"
 }}}


 Fiddling with the code, I realized that reverse() seemed to expect a list
 for "args", not a tuple.  Changing the code to {{{... , args=[p.id]))}}}
 cleared the error.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14088>
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