2007/5/30, Panos Laganakos <[EMAIL PROTECTED]>:
>
> direct_to_template sounds like a nice way to handle the index page
> serving.
>
> But how can it be fed the dynamic content of one or more apps to
> display? Not sure how it's supposed to be done
> through "template tags" as Michel mentioned.

You can do this with inclusion_tags:
http://www.djangoproject.com/documentation/templates_python/#inclusion-tags

Really useful.

>
> On May 24, 5:42 pm, Michel Thadeu Sabchuk <[EMAIL PROTECTED]> wrote:
> > Index page doesn't need a view. Generally it is a static page, if it
> > have some dynamic data, it access through template tags. So, I follow
> > this structure:
> >
> >  project/
> >  project/templates/
> >  project/templates/main/
> >  project/templates/main/base.html
> >  project/templates/main/index.html
> >  project/templates/appname/another_template.html
> >
> > To point to the index template, I use generic views
> > (direct_to_template).
> > Best regards,
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to