Thanks - I knew there was a reason I felt stupid asking that
question.  It's clear now.

On Aug 14, 10:15 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote:
> You've got your inheritance backwards.
>
> Rendering base.html never uses base_header.html.
> Renderig base_header.html would use the code from base.html, but
> override the contents of block header.
>
> On 8/14/07, Wiley <[EMAIL PROTECTED]> wrote:
>
>
>
> > Sorry for the newbie question here, I've searched the group and all
> > the documentation I can find.  I'm sure I'm missing something basic.
> > Here's the principle that I don't understand behind the practical
> > question I'm going to ask:
>
> > When a view only renders a single template, how does django "know" how
> > to find the other templates that populate the base template?
>
> > I'm running apache2 and mod_python.
>
> > I have 2 files, base.html and base_header.html:
>
> > base.html
> > ...
> > <div id='hdr">
> > {% block header %}
> > <h1>achtung</h1>
> > {% endblock header %}
> > </div>
> > ...
>
> > base_header.html
> > ...
> > {% extends "base.html" %}
>
> > {% block header %}
> > <h1>My Beloved Title</h1>
> > {% endblock header %}
> > ...
>
> > When go to a view that renders base.html, it never resolves its
> > "child", base_header.html, it always displays "achtung" instead of "My
> > Beloved Title".  I've put the templates directory in apache's htdocs
> > folder with all permissions on.  I've toggled the extends tag to
> > include or not include the ".html" after base.  No matter what I do I
> > can always render the parent fine, but just can't get that child to
> > load.
>
> > What fantastically simple piece of the puzzle have I forgotten here?
>
> > Thanks so much!


--~--~---------~--~----~------------~-------~--~----~
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 group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to