On Tue, Sep 18, 2012 at 3:45 PM, Tom Evans <tevans...@googlemail.com> wrote:
> On Mon, Sep 17, 2012 at 8:14 AM, Satinderpal Singh
> <satinder.goray...@gmail.com> wrote:
>> I want to extend a template file into the other file. I get fine
>> results when done simply but whenever I use the template containing
>> 'for' tag into the other, it does not show any results.
>> My code for template which is to be extended is here :
>>
>> #template file to be extended into the other
>> <body>
>> <div id="header">
>> {% block header %}
>>
>>                         {% for organisations in organisation %}
>
> Is this just a logic fail?
No, it is not the logic failure as the output is listed when file is
not extended for other file.

> Is 'organization' a list of organizations?
> Or should this be 'for organization in organizations'?
>
No.
The 'organization' is an object which calls the values from the database.

-- 
Satinderpal Singh
http://satindergoraya.blogspot.in/
http://satindergoraya91.blogspot.in/

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