Even then, its till a 'code'. You admin might not even load :)

On Mon, Mar 4, 2013 at 8:33 PM, frocco <faro...@gmail.com> wrote:

> I plan on using this only on the admin side.
>
> On Monday, March 4, 2013 9:18:59 AM UTC-5, Venkatraman.S. wrote:
>>
>> If your website is massive, the following can cause latency issues(also
>> hang!).
>> Check what the SQL that gets generated using the django-debug-toolbar to
>> get some more cues.
>>
>> On Mon, Mar 4, 2013 at 7:35 PM, frocco <far...@gmail.com> wrote:
>>
>>> Thanks for your input, I found this on google also.
>>>
>>> def get_all_logged_in_users():
>>>     # Query all non-expired sessions
>>>     sessions = Session.objects.filter(expire_**date__gte=datetime.now())
>>>     uid_list = []
>>>
>>>     # Build a list of user ids from that query
>>>     for session in sessions:
>>>         data = session.get_decoded()
>>>         uid_list.append(data.get('_**auth_user_id', None))
>>>
>>>     # Query all logged in users based on id list
>>>     return User.objects.filter(id__in=**uid_list)
>>>
>>>
>>> On Sunday, March 3, 2013 11:49:09 AM UTC-5, frocco wrote:
>>>>
>>>> I want to list users currently on our site.
>>>> Would I use the last login date time?
>>>>
>>>> If so, what should the query look like?
>>>>
>>>> Thanks
>>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users...@**googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>> Visit this group at 
>>> http://groups.google.com/**group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>> .
>>>
>>>
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to