Re: News on every page

2010-07-09 Thread Martin Tiršel
On Thu, 08 Jul 2010 18:07:58 +0200, Martin Tiršel <dja...@blackpage.eu> wrote: Hello, I am programming a small CMS on Django, I have editable pages, now I want to add news. I have a website where I want to display these news on every page in right/left column. I have following que

Re: News on every page

2010-07-09 Thread Sævar Öfjörð
That depends entirely on your cache configuration! Caching in django: http://docs.djangoproject.com/en/dev/topics/cache/ Automatic caching modules that rely on memcached exist, like Johnny Cache (http://packages.python.org/johnny-cache/) and Django Cache Machine

Re: News on every page

2010-07-08 Thread Venkatraman S
On Fri, Jul 9, 2010 at 3:40 AM, Antoni Aloy wrote: > I would use a custom template tag with cache > I was planning to recommend the same, but i wasnt sure whether this is efficient when compared with context-processor solution. I had used template tags for a similar

Re: News on every page

2010-07-08 Thread Kenneth Gonsalves
On Thursday 08 July 2010 21:37:58 Martin Tiršel wrote: > I am programming a small CMS on Django, I have editable pages, now I want > to add news. I have a website where I want to display these news on every > page in right/left column. I have following questions: > > 1.) Whe

Re: News on every page

2010-07-08 Thread Antoni Aloy
I would use a custom template tag with cache El 08/07/2010 18:17, "Andy McKay" escribió: On 2010-07-08, at 9:07 AM, Martin Tiršel wrote: > 1.) Where is the right place to place news loader?... Middleware is not the appropriate place, a context processor is the appropriate

Re: News on every page

2010-07-08 Thread Andy McKay
On 2010-07-08, at 9:07 AM, Martin Tiršel wrote: > 1.) Where is the right place to place news loader? > TEMPLATE_CONTEXT_PROCESSORS seems to be a good place and easy to implement. > Another possibility is a middleware, I feel, that it should go there instead > of TEMPLATE_CONTEXT_PROCESSORS.

News on every page

2010-07-08 Thread Martin Tiršel
Hello, I am programming a small CMS on Django, I have editable pages, now I want to add news. I have a website where I want to display these news on every page in right/left column. I have following questions: 1.) Where is the right place to place news loader? TEMPLATE_CONTEXT_PROCESSORS