beginner whitespace question

2007-08-09 Thread eggie5
I keep getting an error for line 7, what's wrong with this? from django.db import models class Poll(models.Model): question = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def __unicode__(self): return self.question de

Re: beginner whitespace question

2007-08-09 Thread eggie5
On Aug 9, 4:52 pm, Dan Bishop <[EMAIL PROTECTED]> wrote: > On Aug 9, 6:47 pm, eggie5 <[EMAIL PROTECTED]> wrote: > > > I keep getting an error for line 7, what's wrong with this? > > > from django.db import models > > > class Poll(models.Model): >

Re: beginner whitespace question

2007-08-09 Thread eggie5
ce(models.Model): poll = models.ForeignKey(Poll) choice = models.CharField(max_length=200) votes = models.IntegerField() def __unicode__(self): return self.choice On Aug 9, 5:52 pm, Dan Bishop <[EMAIL PROTECTED]> wrote: > On Aug 9, 7:02 pm, eggie5 <[EMAIL PROT

Re: beginner whitespace question

2007-08-09 Thread eggie5
On Aug 9, 6:31 pm, James Stroud <[EMAIL PROTECTED]> wrote: > James Stroud wrote: > > def __unicode__(self): That's so goofy. > > return self.choice > > Laughing to hard at the tab & spaces thing to notice the lack of > indentation here. > > James > > -- > James Stroud > UCLA-DOE Inst

Re: beginner whitespace question

2007-08-10 Thread eggie5
On Aug 9, 10:37 pm, James Stroud <[EMAIL PROTECTED]> wrote: > Dan Bishop wrote: > >> Tabs are for tables, hence the name. "Use spaces for space and use tabs > >> for tables" can be a little mnemonic to help you remember the rules. We > >> can make a little song together if you can think of some thi