Writing your first Django app, part 1 - Django 1.7 - # Make sure our __str__() addition worked.

2015-02-04 Thread Gavin Patrick McCoy
Hi, Just started learning Django today. I got down to the last grey box of code on https://docs.djangoproject.com/en/1.7/intro/tutorial01/#writing-your-first-django-app-part-1 and when I checked to see of the __str__() addition to models.py worked, it didn't. I didn't get [], I got []. I trie

Re: Writing your first Django app, part 1 - Django 1.7 - # Make sure our __str__() addition worked.

2015-02-04 Thread Gavin Patrick McCoy
Sorry about that. Thanks a million for your reply. On Wednesday, 4 February 2015 17:38:16 UTC, Vijay Khemlani wrote: > > The method is called "__str__" (note the double underscore at both ends) > > On Wed, Feb 4, 2015 at 2:29 PM, Gavin Patrick McCoy > wrote: > >&g

Writing your first Django app, part 5 Testing

2015-02-21 Thread Gavin Patrick McCoy
Hi, I'm on part 5 of the polls tutorial (https://docs.djangoproject.com/en/1.7/intro/tutorial05/) and I am running Django 1.7 and Python 3.4 on Windows 8. Just want to make sure I'm on the right track. For the following part of tutorial: >>> # get a response from '/'>>> response = client.get

Re: Writing your first Django app, part 5 Testing

2015-02-21 Thread Gavin Patrick McCoy
*Chao Yan--About me : http://about.me/chao_yan > <http://about.me/chao_yan>* > > *My twitter: @yanchao727 <https://twitter.com/yanchao727>* > *My Weibo: http://weibo.com/herewearenow <http://weibo.com/herewearenow>* > *------* > > 2015-02-2

Re: Writing your first Django app, part 5 Testing

2015-02-21 Thread Gavin Patrick McCoy
Ok. I get you. Thanks very much! On Saturday, 21 February 2015 11:56:50 UTC, Daniel Roseman wrote: > > You're doing this in the shell, which uses your devv database in which you > have obviously defined a poll already. > > The docs are taking about running this in a unit test, which would create