Monday, December 2, 2013

How to get database data into a template sidebar

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iEYEARECAAYFAlKcivQACgkQ12ptzpkpIlsKEQCeLimmwLmarfvkC/tXVmdmhbD8
yvQAoICCkbyc7PjGqSRAjP4OsUeyvLJO
=8uLA
-----END PGP SIGNATURE-----
Hi

I am not really sure how to ask the Django docs what I want to do for this
Could someone point me at the docs please

I have a 3 column layout: left & right unchanging columns and a main column
in the middle

Left column is a fixed navigation template
Centre column is the usual dynamic CBV templates
Rite column is also currently a fixed template

Now I want to show summary data collected from one of the data models in
the rite pane - this rite column will always show the same thing
regardless of which CBV is in the centre column. So I need some python
called for the rite column but independent of view classes

Do I have to add a function call to all CBV contexts to tabulate the data
I want to list or is there a better way?

Thanks

--
Drew Ferguson
AFC Commercial
http://www.afccommercial.co.uk

No comments:

Post a Comment