Hi to all! I'm a long time python developer. For my web application needs I've been relying on PHP, but I'm trying to switch to Django. I'm in the learning phase.
A thing that is puzzling me is how to compose various apps like a puzzle with "main" pages. An example. Suppose that I have a home page with some recent news, a column with the latest posts from the forum, an ajax chat and a login / register form. What I see is a main, parent application (the homepage itself) made of little templates exposed by other applications (forum, news, chat, userAdmin). In PHP and my template system of choice (tinybutstrong) i can call a template from a "view" (a script) and work on a template level. Withing this main/index homepage i can embed tags calling other templates (latest from the forum, last 5 news etc). Those subtemplates can not only be static pages (or subtemplates recursively containing other sub templates) but can also be calls to scripts, so that i can effectively embed into a page the output of a script. What is the best way in Django to assemble bits of dinamic subtemplates into a main template? I suspect that the Django way is gathering data from the various apps and yell it to the template via a main view. Is there a way to work template-level? It think it is more convenient to design a page *requesting* data, also because a change only requires adding / deleting some rows in a template, while working on a view-level requires changin the view (and its includes) *and* the template. Any help from you Django experts? Thanks in advance, Gustavo --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---