Re: Keeping track of online users

2008-11-05 Thread [EMAIL PROTECTED]
On Nov 3, 12:07 am, JoeJ <[EMAIL PROTECTED]> wrote: > Are you looking for something like 'django-tracking' ?? >  http://code.google.com/p/django-tracking/ > > I was just perusing this last night, for use on a site of mine. > > -- joe excuse me for late... thank you very much :) --~--~--

Re: Keeping track of online users

2008-11-03 Thread 燕子翔
so,how can i use it in GAE? 2008/11/3 JoeJ <[EMAIL PROTECTED]> > > > Are you looking for something like 'django-tracking' ?? > http://code.google.com/p/django-tracking/ > > I was just perusing this last night, for use on a site of mine. > > -- joe > > > On Nov 1, 3:52 pm, "[EMAIL PROTECTED]" > <

Re: Keeping track of online users

2008-11-02 Thread JoeJ
Are you looking for something like 'django-tracking' ?? http://code.google.com/p/django-tracking/ I was just perusing this last night, for use on a site of mine. -- joe On Nov 1, 3:52 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have found some post of 2007 on this argument but ma

Re: Keeping track of online users

2008-11-02 Thread Jeff FW
Can you be more specific? What are you trying to do? -Jeff On Nov 1, 3:52 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have found some post of 2007 on this argument but maybe with django > 1.0 something is changed. > > how do you do that ? > > thanks everyone :) --~--~-~--~---

Keeping track of online users

2008-11-01 Thread [EMAIL PROTECTED]
I have found some post of 2007 on this argument but maybe with django 1.0 something is changed. how do you do that ? thanks everyone :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: keeping track of online users

2007-10-03 Thread omat
So, here is my version, using the cache backend: from datetime import timedelta, datetime from django.core.cache import cache from django.contrib.sites.models import Site ONLINE_MINUTES = 10 CACHE_KEY = '%s_online_user_ids' % Site.objects.get_current().domain _last_purged = datetime.now() def

Re: keeping track of online users

2007-10-03 Thread Marty Alchin
On 10/3/07, omat <[EMAIL PROTECTED]> wrote: > I used it for some time and observed some inconsistencies. I think > this is because the code is not thread-safe. > > Do you know a thread safe way of applying this approach? Well, "thread-safe" is a confusing term for something like this, but you're

keeping track of online users

2007-10-03 Thread omat
Hi, In this thread, closed due to inactivity: http://groups.google.com/group/django-users/browse_thread/thread/6f5f759d3fd4318a/ Jeremy Dunck offers a resource friendly way to keep track of online users (http://groups.google.com/group/django-users/attach/ c2f60227b0f2d040/OnlineUsers.py?part=2)