Thanks Stephen. That helps a lot.
On Mar 13, 4:29 pm, Stephen DeGrace wrote:
> It's not putting anything into the session. The session is basically a
> jazzed-up dictionary, and the get method works pretty much just like it does
> with the dictionary, it will try and get the objected pointed to
It's not putting anything into the session. The session is basically a
jazzed-up dictionary, and the get method works pretty much just like it does
with the dictionary, it will try and get the objected pointed to by the key
(the first argument) but if that doesn't work, it returns the default (the
Looking at the django-cart open source code:
cart = request.session.get('cart', None) or Cart()
Does the new cart object that recently got created be put back into
request.session['cart'].
I was thinking of improving the code located in
http://code.google.com/p/django-cart/source/browse/trunk/d
3 matches
Mail list logo