Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A simple way for objects to subscribe to other objects for a "feed-like" functionality in a Django project

Project Description

A simple way for objects to subscribe to other objects for a “feed-like” functionality in a Django project.

Installation

pip install django-generic-feeds

or

Run setup.py install or add to your Python path and include 'feeds' in your INSTALLED_APPS setting.

Usage

Make a new feed:

from feeds.models import Feed

feed = Feed.objects.create()

Add a subscription to a feed:

from myapp.models import Event

event = Event.objects.get(pk=36)
feed.add_subscription(event)

Then you can add an activity:

from feeds.models import add_activity

add_activity(actor=request.user, verb='attended', obj=event)

Then the feed’s activity will be populated with this activity:

print feed.activity.all()

See the source code for more.

Release History

Release History

This version
History Node

0.1.5

History Node

0.1.4

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-generic-feeds-0.1.5.tar.gz (4.3 kB) Copy SHA256 Checksum SHA256 Source Jun 14, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting