On Jan 15, 10:56 pm, Petar <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have managed to build a very simple blog and am able to display all
> my posts on a page.
>
> The thing is, in my sidebar I want to display all the categories. This
> sidebar is the same for every view. How do I create the variables
> needed for this recurring sidebar? So that in every view I can
> generate a list of all categories in the database?
>
> Thanks in advance,
> Petar

Another way of doing it would be to use context processors. Dont know
whats the prefed way..
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to