Re: Stuck on tutorial your first Django app part 2

2016-06-10 Thread Neil Hunt
I just went through the tutorial again to check what the definition of my __str__() method was and I noticed where the tutorial says to add a custom method to polls/models.py. Before I copied and pasted a whole new object and method to the file instead of adding the custom method to the object.

Re: Stuck on tutorial your first Django app part 2

2016-06-09 Thread Bill Freeman
What is the definition of your __str__() method? On Thu, Jun 9, 2016 at 4:11 PM, Neil Hunt wrote: > Hello, > > I'm enjoying the tutorial and now I'm stuck on the second page (writing > your first Django app part 2), shortly after this paragraph. > > 'It’s important to add

Stuck on tutorial your first Django app part 2

2016-06-09 Thread Neil Hunt
Hello, I'm enjoying the tutorial and now I'm stuck on the second page (writing your first Django app part 2), shortly after this paragraph. 'It’s important to add __str__() methods to your models,