Re: Tutorial method was_published_today() - problem

2008-07-02 Thread bruno desthuilliers
On 2 juil, 09:48, Collin Grady <[EMAIL PROTECTED]> wrote: > You can use tabs, You can, but *don't*. Use spaces. 4 spaces. Always. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Tutorial method was_published_today() - problem

2008-07-02 Thread Collin Grady
You can use tabs, but you have to /always/ use tabs if you do so - you can't mix tabs and spaces, or you hit issues like this :) Especially if your editor is showing tabs as four spaces, since python would use eight. --~--~-~--~~~---~--~~ You received this message

Re: Tutorial method was_published_today() - problem

2008-07-01 Thread [EMAIL PROTECTED]
Got it. I had to delete the tabs and use spaces. I guess I won't cut/ paste or use tabs. Thanks, Jason On Jul 1, 5:23 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Tue, Jul 1, 2008 at 8:06 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > It IS indented correctly, it looks like it

Re: Tutorial method was_published_today() - problem

2008-07-01 Thread Karen Tracey
On Tue, Jul 1, 2008 at 8:06 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > It IS indented correctly, it looks like it wasn't due to copy/paste > but it is in fact inline with def __str__(self): BTW running .96.1 > I don't know what to tell you. Cut/pasting your models, fixing the

Re: Tutorial method was_published_today() - problem

2008-07-01 Thread [EMAIL PROTECTED]
It IS indented correctly, it looks like it wasn't due to copy/paste but it is in fact inline with def __str__(self): BTW running .96.1 On Jul 1, 12:26 pm, Matthias Kestenholz <[EMAIL PROTECTED]> wrote: > On Tue, 2008-07-01 at 12:18 -0700, [EMAIL PROTECTED] wrote: > > Hello, > > > I'm just going

Re: Tutorial method was_published_today() - problem

2008-07-01 Thread [EMAIL PROTECTED]
oops, it is, that was a result of copy/paste. On Jul 1, 12:23 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Tue, Jul 1, 2008 at 3:18 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I'm just going through this tutorial and the custom method > > was_published_today() is

Re: Tutorial method was_published_today() - problem

2008-07-01 Thread Matthias Kestenholz
On Tue, 2008-07-01 at 12:18 -0700, [EMAIL PROTECTED] wrote: > Hello, > > I'm just going through this tutorial and the custom method > was_published_today() is not recognized as an attribute of Poll, > though it's defined in the model as follows: > > from django.db import models > import

Re: Tutorial method was_published_today() - problem

2008-07-01 Thread Karen Tracey
On Tue, Jul 1, 2008 at 3:18 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm just going through this tutorial and the custom method > was_published_today() is not recognized as an attribute of Poll, > though it's defined in the model as follows: > > from django.db import models

Tutorial method was_published_today() - problem

2008-07-01 Thread [EMAIL PROTECTED]
Hello, I'm just going through this tutorial and the custom method was_published_today() is not recognized as an attribute of Poll, though it's defined in the model as follows: from django.db import models import datetime class Poll(models.Model): question = models.CharField(maxlength=200)