Re: crititcal tidbit of documentation missing (instance vs. class attributes)

2007-10-25 Thread bramble
On Oct 25, 10:38 am, Dan Ellis <[EMAIL PROTECTED]> wrote: > Yeah, Django is doing some magic using a metaclass for Model > (ModelBase, which is badly named IMO, as it isn't Model's base class). > Most of the magic is in django.db.models.base. > > The documentation tells you how to /use/ the model

crititcal tidbit of documentation missing (instance vs. class attributes)

2007-10-25 Thread bramble
It looks to me that even though you set up class attributes in your models, when you *use* your models in your code, you access them as if they were instance attributes. Nowhere in the tutorials or the model or db-api docs is this mentioned. Unless I'm misunderstanding it, evidently, Django is

Re: Error During Django Install on Mac

2007-10-24 Thread bramble
On Oct 24, 2:25 am, jnap <[EMAIL PROTECTED]> wrote: > I am new at this so I apologize if this is a stupid question... Hi jnap, You would probably benefit from learning some basic shell usage. For example: * using commands like ``cd``, ``ln``, ``sudo``, ``cp``, and so on. * how environment

Re: Error During Django Install on Mac

2007-10-24 Thread bramble
On Oct 24, 2:48 am, Ben van Staveren <[EMAIL PROTECTED]> wrote: > No offense but uh, RTFM? That wasn't particularly courteous. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: template inheritance and default text

2007-09-17 Thread bramble
On Sep 17, 6:12 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 9/17/07, bramble <[EMAIL PROTECTED]> wrote: > > > My base.html has this: > > > {% block greeting %}not logged in{% endblock %} > > Personally, I wouldn't use the view for thi

template inheritance and default text

2007-09-17 Thread bramble
I'd like to show a little greeting text on a page that either says either "not logged in", or "hi " (showing the User's name), but am having problems getting the default "not logged in" text show up. My base.html has this: {% block greeting %}not logged in{% endblock %} And the child