Thanks Daniel.
Im still quite new to python / django and not sure how to pass
OnlineUsers.get_online_user_ids() into the context. My view to list
all profiles looks like this:
def profile_list(request):

        return render_to_response('profile_list.html',

                              { 'profile_list': Profile.objects.all
() }, context_instance=RequestContext(request))



On 9 Aug, 22:16, Daniel Roseman <dan...@roseman.org.uk> wrote:
> On Aug 9, 10:07 pm, "Rob B (uk)" <robtot...@googlemail.com> wrote:
>
> > Im using this middleware to try and display a list ofonlineuser on
> > my site.http://dpaste.com/77464/
>
> > Im just not sure how to pass it to my view and template.  Any ideas?
>
> > Middleware found 
> > @http://groups.google.com/group/django-users/browse_thread/thread/6f5f...
>
> > Thanks
>
> Jeremy explains how to do it in the message you link to:
> "You'll want to use OnlineUsers.get_online_user_ids() wherever you
> need
> the list of IDs. "
>
> ie import the OnlineUsers module in your view and pass
> OnlineUsers.get_online_user_ids() into the context.
> --
> DR.
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to