Wow, thank you. Yes that was exactly my problem. My view code was:

def problems(request):
    problems_list = Problems.objects.all()
    return render_to_response('problems_index.html', {'problems_list':
problems_list})

And as soon as I changed it to "problems_index_problist.html" it
worked!!

This makes much more sense now, in terms of how template inheritance
works...

Thanks,
Dustin

On Feb 9, 11:14 am, creecode <[email protected]> wrote:
> Hello Dustin,
>
> I suspect your are confused about how inheritance works.
>
> On Feb 9, 7:43 am, Dustin D <[email protected]> wrote:
>
> > No matter what I do, when I visit the parent, it just displays the
> > default value inside {% block problist %} as if the child doesn't
> > exist.
>
> I think you are referencing the parent template something like...
>
> return render_to_response ( 'problems_index.html',
>         context_instance = RequestContext ( request, context ) )
>
> Which only pulls in the parent template because there is no include
> tag to pull in the child template.
>
> I think what you need to do is reference the child template in your
> view.  Something like...
>
> return render_to_response ( 'problems_index_problist.html',
>         context_instance = RequestContext ( request, context ) )
>
> I think you'll also need to adjust your template code once you get an
> understanding of how the inheritance works.
>
> The relevant view code would help us determine if this is indeed the
> case.
>
> Toodle-looooooooo.........
> creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
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