At chapter 4 of IC, I added Django’s unicode() method to our model. My model is:
class Thing(Timestamp):
name = models.CharField(max_length=255)
description = models.TextField()
slug = models.SlugField(unique=True)
user = models.OneToOneField(User, blank=True, null=True)
def __unicode__(self):
return self.name
# new helper method
def get_absolute_url(self):
return "/things/%s/" % self.slug
I also followed your preceding instructions but still it showed :
Here is my github repository, I hope you will look it and suggests the ways to fix it: https://github.com/ohid1986/myhellowebapp
Regards,
Ohid