You are mixing versions of the tutorial. Check the URL or the green "Documentation version:" in the bottom right. The "dev" versions use "Question" while the older versions use "Poll".
On Monday, October 21, 2013 4:13:46 PM UTC-4, Daniel Roseman wrote: > > On Monday, 21 October 2013 20:47:51 UTC+1, Yang Yang wrote: > >> the tutorial is extremely helpful: >> https://docs.djangoproject.com/en/dev/intro/tutorial01/ >> >> but the code samples there seems to be somehow out of sync with the text, >> for example some parts of the code uses the class "Poll" while some parts >> use "Question". >> >> is there a complete set of source files showing the complete 6 tutorials? >> >> thanks! >> yang >> > > "question" is a field on the Poll model. There isn't anywhere in the > tutorial that uses Question as a model class. > -- > DR. > -- You received this message because you are subscribed to the Google Groups "Django users" 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]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c4c34dbf-256d-4604-8c57-b795658d9edb%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.

