If you use the context processors, you can include the data on every
page. The template should be rendered from the view or in your case a
generic view.
Cheers
On May 5, 9:06 am, Martin Tiršel wrote:
> Hello,
>
> I need to insert some data from database onto every page, so I inserted
> them in
See:
http://docs.djangoproject.com/en/dev/ref/settings/#template-context-processors
On Wed, May 5, 2010 at 10:06 AM, Martin Tiršel wrote:
> Hello,
>
> I need to insert some data from database onto every page, so I inserted them
> into base.html. Until now, I was using generic views but it doesn'
Hello,
I need to insert some data from database onto every page, so I inserted
them into base.html. Until now, I was using generic views but it doesn't
seems to be ideal for this case. Is there a way how to achieve this
behaviour with generic views or I have to insert needed model into ever
3 matches
Mail list logo