0

Does anyone has idea how to display django stream actions on templates.

Does I need to use Comet to fetch values to display on my template. Since, When I am doing action.send, it is storing verb and description in table actstream_action. But how should I display the values on template ?

P.S. Please note that this is first time I am using django-activity stream.

SRC
  • 590
  • 6
  • 22
  • Check toolkit like [django-socketio](https://github.com/stephenmcd/django-socketio). Or, normally a long-polling is enough. – okm Jul 07 '12 at 03:17
  • @okm:what are the ways to implement long polling in django ? I think django-socketio is also a way to create long polling, isn't it ? – SRC Jul 07 '12 at 03:23
  • Yes, it is. Ah, I mean polling for the second point actually. – okm Jul 07 '12 at 03:30
  • My initial thought was that django-activity stream has some internal mechanism through which we can fetch actions directly to template using various templatetags provided by it. If you think my this assumption is wrong, then please provide your above comment as answer so I can close this discussion. – SRC Jul 07 '12 at 03:58

1 Answers1

0

I've checked django-activity-stream, seems it has no magic for rendering activity updating dynamically.

Check django-socketio for websockets way. Or simply polling tech would satisfy your requirement if the expected access loading is not that high.

I'm not quite sure what you mean about "fetch actions directly to template using various templatetags" because template rendering is accomplished during request-response proceduret.

okm
  • 23,575
  • 5
  • 83
  • 90