I am getting started with Django and Python so naturally I'm doing the polls project tutorial. I am working under Windows 7 with Python 2.7.9 and Django 1.3.7
I have this piece of code (with line numbers under brackets):
(3) class Poll(models.Model):
(4) question = models.CharField(max_length=200)
(5) pub_date = models.DateTimeField('date published')
(6) def __unicode__(self):
(7) return self.question
and when trying to run "manage.py shell" I get the following error :
File "C:\Users...\mysite\polls\models.py", line 6
def unicode(self)
^
IndentationError: unexpected indent
What am I doing wrong ?