Most combinations around the following syntax did not  seem to have
worked :
[code]
latest_news_nbr = {
    "queryset" : News.objects.all().count(),
    "template_object_name" : "latest_news_nbr",
    "extra_context" : {"latest_news_nbr" : News.objects.all().count()}
}
[/code]

... what I meant with Side bar is that the template I use contains a
side bar showing informations ...
So any view using that template should also populate the side bar ...
but in fact these are not part of my primary constraints for the the
view I want to develop.
If you connect to www.artima.com, there is on the right hand side a
"Hottest Discussions" ...
I could frame my page ... but I don't like that :(

\T,



On Jun 10, 12:16 pm, Venkatraman S <venka...@gmail.com> wrote:
> On Thu, Jun 10, 2010 at 3:32 PM, tsmets <tsm...@gmail.com> wrote:
> > I thought I could use the generic views to fill the side bars with
> > summary data.
>
> Not sure what you mean - pass the vars to the template and use them
> accordingly wherever you want.
> IMHO, django doesnt know whether something is in the sidebar or footer or
> header  - you have to define them accordingly in your templates and use it.
>
> If you want to pass extra data in a generic view, then try 'extra_context'.
>
> -V

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