Some of the options you have are:
1) CBVs
2) custom template tags:
https://docs.djangoproject.com/en/1.5/howto/custom-template-tags/
3) template preprocessors:
https://docs.djangoproject.com/en/1.5/ref/settings/#template-context-processors
On 12/2/13, Drew Ferguson <drew@afccommercial.co.uk> wrote:
> 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
>
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAN5idp_B3T7iKFes%3DB1ejYfF9TvOahJmvHsPrVW_sFfQ4drCmg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment