Hi all,

The docs say we can have multiple child templates extending the parent
template. But then how to render multiple  child templates in one call ?

regards,
KM

On Fri, Jan 21, 2011 at 8:14 PM, km <srikrishnamo...@gmail.com> wrote:

>
> Hi all,
>
> On Fri, Jan 21, 2011 at 6:03 PM, Daniel Roseman <dan...@roseman.org.uk>wrote:
>
>> On Friday, January 21, 2011 12:08:57 PM UTC, km wrote:
>>>
>>> Hi all,
>>>
>>> I am trying to display a  parent django template (base.html) with a view
>>> function called "base" like this:
>>>
>>> def base(request):
>>>    return render_to_response('base.html')
>>>
>>> The base.html gets displayed in the browser(firefox 3.x) but the child
>>> html pages, holding content details, which extend base.html does not get
>>> pulled automatically.
>>> both base.html and child html are in the same dir.
>>> I am using django 1.2.4 on ubuntu 10.10
>>> what could be the problem?
>>>
>>> pls let me know.
>>> regards,
>>> KM
>>>
>>
>> You're doing it the wrong way round. Child templates extend parent
>> templates, so you need to render the child.
>>
> Many thanks for the clarification. that makes it clear.
> regards,
> KM
>
>
>> --
>> DR.
>>
>> --
>> 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
>> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to