Django

Code

Ticket #7253 (closed: wontfix)

Opened 2 months ago

Last modified 1 month ago

typo on http://www.djangoproject.com/documentation/tutorial04/ ?

Reported by: anonymous Assigned to: nobody
Milestone: Component: Documentation
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Hello,

I got this error when following until tutorial04 : ========================================= TypeError? at /polls/1/vote/ vote() got an unexpected keyword argument 'poll_id' ... =========================================

And finally point to this: ========================================= Change it like so:

... urlpatterns = patterns(, ...

(r'(?P<poll_id>\d+)/vote/$', 'mysite.polls.views.vote'),

) =========================================

and after the <poll_id> into <object_id> the error has disappeared. So I think that should be a typo or mistyped. Please ignore if it was not.

Attachments

Change History

06/14/08 02:17:42 changed by Simon Greenhill

  • status changed from new to closed.
  • needs_better_patch changed.
  • resolution set to wontfix.
  • needs_tests changed.
  • needs_docs changed.

I think what's happened is that you skipped the step changing the hand-written views into generic views (i.e. around line 199 we introduce generic views (which require <object_id>)).


Add/Change #7253 (typo on http://www.djangoproject.com/documentation/tutorial04/ ?)




Change Properties
Action