Can I access session in my middleware?

2013-04-03 Thread Паша Тявин
When I access my session in middleware, Django makes dublicate rows in db. I don't know why. Please, help me find out the mistake I've made a simple github project for that question https://github.com/vinograd19/django-session-problem . It contains only 8 simple files, so maybe it would be easy.

ajax cart

2011-05-09 Thread Паша Тявин
Hello. I'm newbie and trying to make a simple shopping cart using anonymous session under ajax control. I have a special url "/update_cart/" for only post request from the the page "/product/" and I made a dictionary "request.session['cart']" with a text like [{'id':'2','quant':3},{'id':4','quan