Oggie, Thanks for the reply. So you're saying that it would be better to send my shopping cart data to every template through my all my view's? If that's the case then I assume there is no way to send request.session information using a custom template?
Thanks On Aug 3, 4:36 pm, oggie rob <[EMAIL PROTECTED]> wrote: > If you really need to use a tag, look > athttp://www.djangoproject.com/documentation/templates_python/#passing-... > 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 -~----------~----~----~----~------~----~------~--~---