Re: Displaying number of visitors

2006-10-16 Thread orestis
OK, I did it. Unfortunately, the session table is using pickled data, so the processing has to be done in django. Here it goes: In views that you would like to refresh the active state of a user, add: request.session['last_seen']= datetime.datetime.now() Then, in a util.py : from django.contri

Re: Displaying number of visitors

2006-10-12 Thread orestis
Thanks! I'll try that! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PR

Re: Displaying number of visitors

2006-10-11 Thread Don Arbow
On Oct 11, 2006, at 8:06 AM, orestis wrote: > So I ask: How can access from the session object ALL visitors so I can > display in my site: Django sessions are stored in the database. I did this quick test using the django shell, should be enough to get you started: >>> from django.contrib.se

Displaying number of visitors

2006-10-11 Thread orestis
Following this thread: http://groups.google.com/group/django-users/browse_frm/thread/f11c67142c7dd71a/2bdeb945f7bf2232?lnk=gst&q=visitors&rnum=2#2bdeb945f7bf2232 It is mentioned that to display a list of visitors (anonymous and logged in) I have to use the session framework. However, in the doc