On Tue, Sep 18, 2012 at 12:12 PM, Satinderpal Singh
<satinder.goray...@gmail.com> wrote:
>> With template 'inheritance', when you extend another template, what
>> happens is that the named blocks in the parent template are replaced
>> with the equivalently named blocks in the derived template.
>>
>> This means that in the derived template, everything outside of a named
>> block is ignored. You have lots of content outside the named blocks,
>> so this is probably causing you some grief.
>>
> But I have used different block names for both the files. So I don't
> think there is any chance of overriding  of data.
>

You've misunderstood what I've said. This is your derived template,
from an earlier post:

{% extends "report/report_header.html" %}
{% load i18n %}
<html>
<body>
{% block content %}
<br/>
…
{% endblock %}

Since this is a derived template, ANYTHING outside of a {% block %}
block is ignored. So that "<html>\n<body>", being outside of a block
is ignored and not included in the result.

I don't think this is what is causing your problem here though.

Cheers

Tom

-- 
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