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'
Thanks for you help On Aug 2, 1:37 am, oggie rob <[EMAIL PROTECTED]> wrote: > On Aug 1, 11:22 pm, oggie rob <[EMAIL PROTECTED]> wrote: > > > This is what middleware is made > > for.http://www.djangoproject.com/documentation/middleware/ > > > -rob > > Sorry, I have recently been working withshoppingcarts and had > redirection onmybrain. Fabien's suggestion is probably what you are > after. > > Thob --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---