how do i write custom template tag that is available to all my apps. not tied to a particular app?
On Jul 26, 7:05 am, bruno desthuilliers <[email protected]> wrote: > On 25 juil, 00:25, owidjaya <[email protected]> wrote: > > > if i have a page with sections say the home page. It has section for > > news, it has section for blog, comments and etc. > > I have apps for every one of those section. Now how do i add the > > output of the view for each of those apps on the same page? > > You don't. A Django "view" is just a callable that takes an HTTP > request and returns an HTTP response. The solution to your problem is > to write custom templatetags for news, blog, comments etc and call > these templatetags from the templates that needs them. > > HTH -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. 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.

