Brill thanks. Its actaully working! Getting a the IDs with the
template:
{% for user_set in online_users %}
{{ user_set }}
{% empty %}
To list the usernames instead of the ID will I need to update the view
or is there a clever trick with the template?
On Aug 10, 11:02 pm, Daniel Roseman
On Aug 10, 10:45 pm, "Rob B (uk)" wrote:
> Im reading through loads of python / django tutorials atm, hopefully
> some of it will stick!
>
> I added what you suggested and now I'm getting the error "type object
> 'OnlineUsers' has no attribute 'get_online_user_ids'"
>
Im reading through loads of python / django tutorials atm, hopefully
some of it will stick!
I added what you suggested and now I'm getting the error "type object
'OnlineUsers' has no attribute 'get_online_user_ids'"
view - http://dpaste.com/77965/
middleware (name OnlineUsers) -
On Aug 10, 7:10 pm, "Rob B (uk)" wrote:
> 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):
>
>
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',
{
On Aug 9, 10:07 pm, "Rob B (uk)" wrote:
> Im using this middleware to try and display a list of online user on
> my site.http://dpaste.com/77464/
>
> Im just not sure how to pass it to my view and template. Any ideas?
>
> Middleware found
>
Im using this middleware to try and display a list of online user 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/6f5f759d3fd4318a/
Thanks
7 matches
Mail list logo