On Mon, Sep 17, 2012 at 5:58 PM, Satinderpal Singh
<satinder.goray...@gmail.com> wrote:
> On Mon, Sep 17, 2012 at 7:31 PM, jondykeman <jondyke...@gmail.com> wrote:
>> Can you put the code of the template you are extending this one with?
> Here is the file that is extending:
>
> {% extends "report/report_header.html" %}
> {% load i18n %}
> <html>
> <body>
> {% block content %}
> <br/>
> <table align="center" width="80%" border="2px" cellspacing="0px">

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.

Hope that helps

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