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
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
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
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
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
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
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
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
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)
9 matches
Mail list logo