On 8/2/07, Greg <[EMAIL PROTECTED]> wrote:
>
> I've created a shopping cart.  I want to put something on the top of
> every page that let's people know how many items they have in their
> cart.  I have a lot of views that don't send any dictionary key's that
> contain shopping cart info.   If I want to do this...do I now have to
> edit every view return render_to_response line so that they all
> contain a key that contains my shopping cart info?

You could also try to use a context processor to populate the template
with the values of your shopping cart :

http://www.djangoproject.com/documentation/templates_python/#writing-your-own-context-processors

-- 
Fabien SCHWOB

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to