Re: Insert model data into every page (base.html)

2010-05-06 Thread personificator
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

Re: Insert model data into every page (base.html)

2010-05-05 Thread Bill Freeman
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'

Insert model data into every page (base.html)

2010-05-05 Thread Martin Tiršel
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