On Sunday 06 November 2016 21:00:44 ludovic coues wrote:
> I would try request.session.get('cart_id', None) instead of
> request.session['card_id'].
Negative.
First, this is part of the 3rd party app "doorsale". Secondly, at this
stage in the order process a cart id SHALL be present in the
I would try request.session.get('cart_id', None) instead of
request.session['card_id'].
Both act the same if the key exist in the dict. When the key is
missing, the first return the second value (None in this case) while
the second raise a Key Error exception.
2016-11-05 13:10 GMT+01:00 Shazia
Hi,
I am using doorsale repo for building ecommerce site due to it's simplicity
but I am stuck at the error while trying to catch cart session ID.
The repo link is:
https://github.com/mysteryjeans/doorsale
Error traceback is below:
Request Method: POST
Request URL:
3 matches
Mail list logo