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
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 d
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 varia
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 g
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 fo
Those sound like great options. Thanks a lot, James.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this
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 templa
7 matches
Mail list logo