Contenu connexe
Similaire à Activity streams Lightning Talk, DjangoCon 2011, Day3
Similaire à Activity streams Lightning Talk, DjangoCon 2011, Day3 (20)
Activity streams Lightning Talk, DjangoCon 2011, Day3
- 12. One (longish) call:
# create action
action.send (
user.person, # actor
verb='pushed', # verbed
action_object=app, # an object
target=environment, # to a target (optional)
description=message,
)
- 13. One URL Pattern:
import actstream
urlpatterns += patterns('',
('^feed/activity/', include('actstream.urls')),
)