get value in session when concurrency request

2009-04-17 Thread leopay
at first session["a"] is oldvalue, request A set session["a"] to newvalue, before session.save to db,(as in django, the session save action occur at end of the request), meanwhile, request B arrive, but get session["a"] is still the oldvalue, how to handle this? --~--~-~--~~-

Re: sql_queries does not include all the sql statements

2008-04-29 Thread leopay
s when use django.core.context_processors.debug On Tue, Apr 29, 2008 at 4:11 PM, Amit Ramon <[EMAIL PROTECTED]> wrote: > > * leopay <[EMAIL PROTECTED]> [2008-04-29 00:07 -0700]: > > > > I use django.core.context_processors.debug to see the sql_queries i

sql_queries does not include all the sql statements

2008-04-29 Thread leopay
I use django.core.context_processors.debug to see the sql_queries in template. The raw sql of query Entry.objects.all()[0,1] does not in the sql_queries,but if I change the query like this Entry.objects.all()[0] and then the sql is in the sql_queries. why? --~--~-~--~~~