Questions tagged [django-activity-stream]

Django Activity Stream is a module to generate JSON feeds of activities such as "justquick (actor) closed (verb) issue 2 (object) on django-activity-stream (target) 12 hours ago" in Activity Streams format.

Here is a simple, minimal example of a JSON serialized activity:

  {
    "published": "2011-02-10T15:04:55Z",
    "actor": {
      "url": "http://example.org/martin",
      "objectType" : "person",
      "id": "tag:example.org,2011:martin",
      "image": {
        "url": "http://example.org/martin/image",
        "width": 250,
        "height": 250
      },
      "displayName": "Martin Smith"
    },
    "verb": "post",
    "object" : {
      "url": "http://example.org/blog/2011/02/entry",
      "id": "tag:example.org,2011:abc123/xyz"
    },
    "target" : {
      "url": "http://example.org/blog/",
      "objectType": "blog",
      "id": "tag:example.org,2011:abc123",
      "displayName": "Martin's Blog"
    }
  }

A single activity consists of an actor (required), a verb (required), an an object (optional), and a target (optional). In Django Activity Stream each of those noun components might be any properly registered Django Model.

There are some pre-defined streams such as User streams (what the given user did) or Target streams (what happened to the given target) and you can create your own custom ones.

GitHub with the source is located at https://github.com/justquick/django-activity-stream and official documentation is at http://django-activity-stream.readthedocs.io/en/latest/

18 questions
0
votes
1 answer

Pass request to django inherited classes

I am overriding some methods of a popular package, django-activity-stream (I think the package is mostly irrelevant to this question). from app/urls.py I call TeamJSONActivityFeed urlpatterns = [ ... …
ambe5960
  • 1,870
  • 2
  • 19
  • 47
0
votes
1 answer

Get all Actions filtered by Verb with Django Activity Stream

I'm quite new to Django and Python, so maybe my Question might be stupid but.. I'm logging what users do on my page with Django-Activity-Stream. And now I'm trying to build a page where I'll have a nice graph showing me what users did depending on…
Toni
  • 3
  • 3
0
votes
1 answer

How to Disable Follow Feature on Django-Activity-Stream

I'm creating a Django application with django-activity-stream. I've registered the app inside the project. Unfortunately, the built-in follower/following feature of the app conflicts with my Follow table - I want more granular control than the…
lgants
  • 3,665
  • 3
  • 22
  • 33
1
2