django: how to interconnect various logical pieces of a webpage

Posted by facha on Stack Overflow See other posts from Stack Overflow or by facha
Published on 2010-03-23T15:53:52Z Indexed on 2010/03/23 16:13 UTC
Read the original article Hit count: 261

Filed under:

Hi, everyone. I'm just starting with django, so sorry for a possibly stupid question.

Imagine, I have a webpage with 3 logical pieces: content, dynamic menu, banners. It seems ok to me to have a template with something like:

{% include "banners.html" %}
{% include "menu.html" %}
{% include "content.html" %}

But then, how do I do it? Every piece has its separate logic in a separate view in its' separate app. How do I trigger execution of all three views and render all three templates?

P.S. Is there a sourceforge-like site for django apps where I could take a look at how people are doing stuff in real projects?

© Stack Overflow or respective owner

Related posts about django