On Thu, Jul 3, 2014 at 8:08 PM, Lian Tombing <
lya...@gmail.com> wrote:
> When I tried to implement the example,
>
> class Poll(models.Model):
> # ...
> def __unicode__(self): # Python 3: def __str__(self):
> return self.question
>
> I get the error,
>
> Tab error: inconsistent use of tabs and spaces.
You must use either tabs or spaces to indent your code, not both tabs
and spaces. Configure your editor to output spaces instead of tab when
you press the tab key, and reindent your code.
Cheers
Tom