Re: Need help to catch "cart_id" based on session.

2016-11-07 Thread Melvyn Sopacua
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

Re: Need help to catch "cart_id" based on session.

2016-11-06 Thread ludovic coues
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

Need help to catch "cart_id" based on session.

2016-11-05 Thread Shazia Nusrat
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: