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

Re: beginner whitespace question

2007-08-10 Thread Ben Finney
James Stroud <[EMAIL PROTECTED]> writes: > When you want to screw your whitespace--don't! > Take this little pledge and I know you won't: James, you're a poet And you don't even realise -- \ "[...] a Microsoft Certified System Engineer is to information | `\ technology as a McDonald

Re: beginner whitespace question

2007-08-09 Thread James Stroud
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 things that >> rhyme with "don't" and "use" and "tabs". > > "won't" >

Re: beginner whitespace question

2007-08-09 Thread Dan Bishop
On Aug 9, 8:28 pm, James Stroud <[EMAIL PROTECTED]> wrote: > eggie5 wrote: > > But this still isn't valid: > > > from django.db import models > > > class Poll(models.Model): > >question = models.CharField(max_length=200) > >pub_date = models.DateTimeField('date published') > > > def __u

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-09 Thread James Stroud
James Stroud wrote: > def __unicode__(self): > return self.choice Laughing to hard at the tab & spaces thing to notice the lack of indentation here. James -- James Stroud UCLA-DOE Institute for Genomics and Proteomics Box 951570 Los Angeles, CA 90095 http://www.jamesstroud.com/ -- ht

Re: beginner whitespace question

2007-08-09 Thread James Stroud
eggie5 wrote: > But this still isn't valid: > > 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 > > > >

Re: beginner whitespace question

2007-08-09 Thread eggie5
But this still isn't valid: 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 class Choice(models.Model): poll

Re: beginner whitespace question

2007-08-09 Thread Dan Bishop
On Aug 9, 7:02 pm, eggie5 <[EMAIL PROTECTED]> wrote: > 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(mode

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): > > question = models.CharField(max_length=200) >

Re: beginner whitespace question

2007-08-09 Thread Dan Bishop
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): > question = models.CharField(max_length=200) > pub_date = models.DateTimeField('date published') > > def

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