Or a custom template context processor that adds gigs to every request context.
On Thu, Jun 28, 2012 at 10:40:30PM -0400, J. Cliff Dyer wrote: > It looks like what you want to do is create a templatetag. Then you can > just include a snippet like: {% gig_schedule %} in your template. The > documentation can point you in the right direction. > > On Thu, 2012-06-28 at 15:20 -0700, grimmus wrote: > > Hi, > > > > > > I am doing a site for a DJ that lists upcoming gigs on each page. > > There's an include file in each page template to output the list of > > gigs. > > > > > > I am wondering how i can pass the gig information to every page > > without having to repeat the code in every page view. > > > > > > I hope i have been clear > > > > > > Thanks > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Django users" group. > > To view this discussion on the web visit > > https://groups.google.com/d/msg/django-users/-/naTvLr9T_3MJ. > > 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. > > > -- > 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. > -- 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.