source code of the Django Tutorial?

71 views
Skip to first unread message

Yang Yang

unread,
Oct 21, 2013, 3:47:51 PM10/21/13
to django...@googlegroups.com
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

Daniel Roseman

unread,
Oct 21, 2013, 4:13:46 PM10/21/13
to django...@googlegroups.com
"question" is a field on the Poll model. There isn't anywhere in the tutorial that uses Question as a model class.
--
DR.

tim

unread,
Oct 22, 2013, 1:16:59 PM10/22/13
to django...@googlegroups.com
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".

fou...@mac.com

unread,
Feb 24, 2014, 5:56:29 PM2/24/14
to django...@googlegroups.com
Yes so I just went to 1.7 and started over.  But the big problem they only give you code excerpts and newbies like me in the source code file.  Bummer because I get indentation 
errors all the time

Mike Dewhirst

unread,
Feb 24, 2014, 7:55:48 PM2/24/14
to django...@googlegroups.com
On 25/02/2014 9:56am, fou...@mac.com wrote:
> I get indentation errors all the time

Does your editor use 4 spaces instead of tab chars and does it convert
all tabs to 4 spaces?

Reply all
Reply to author
Forward
0 new messages