request_finished signal

2011-02-15 Thread Bzyczek
Hello, when exactly Django send request_finished signal please? If I have in cache some temporary data, is it safe to clear them by function connected to request_finished signal? (i suppose that template was rendered, view and all middleware code was executed, etc..; in short, everything which cou

Re: ID of each request

2011-02-15 Thread Bzyczek
tiple deployments, you > could use memcached (which supports atomic operations), then do grequest_inc > = cache.incr('grequestcount', 1). > > Hope this makes sense! > > > > > > > > On Tue, Feb 15, 2011 at 4:58 PM, Bzyczek wrote: > > > I am not

Re: ID of each request

2011-02-15 Thread Bzyczek
> I am not aware of anything, but you can easily make a piece of middleware > which generated a UUID then exposed this in the request object :) Yes I could, but then I must provide to all parts of my code request object. I don't know how to build something like "global variable", which will be saf

Re: PendingDeprecationWarning during tests

2010-06-11 Thread Bzyczek
Thank you very much to make it clear for me. Regards Michal On 11 čvn, 02:26, Russell Keith-Magee wrote: > On Thu, Jun 10, 2010 at 9:05 PM, Plovarna wrote: > > Hello, > > I recently migrated from Django 1.1.2 to 1.2.1. When I run my test now, I > > get a lot of PendingDeprecationWarning messag

Re: PendingDeprecationWarning during tests

2010-06-10 Thread Bzyczek
Yes, it seems but I don't know why -- I use new way for specifying DB settings with DATATASES dictionary like: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'my_db', 'USER': 'my_user', 'PASSWORD': 'my_pass', 'HOST