If you really need to use a tag, look at http://www.djangoproject.com/documentation/templates_python/#passing-template-variables-to-the-tag But I think you probably would find it easier to add an extra context processor & avoid the tag altogether.
-rob On Aug 3, 6:01 am, Greg <[EMAIL PROTECTED]> wrote: > Thanks for your help...I'm now able to create a custom tag. However, > I now seem to have a another problem with custom tags. How do I send > session information to each template. I can't use > request.session['cart'] in my custom tag function because it doesn't > have a request parameter. I always get the error 'global name request > is not defined' --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---