Skip to main content

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.

Need Help?

Email: rvause@gmail.com

Github: https://github.com/rvause/django-generic-feeds

Download files

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

Source Distribution

django-generic-feeds-0.1.5.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file django-generic-feeds-0.1.5.tar.gz.

File metadata

File hashes

Hashes for django-generic-feeds-0.1.5.tar.gz
Algorithm Hash digest
SHA256 802d0e5e22dbb4a24f6f59a449eaeb426f87ebadf0954da27f6183646c1bd048
MD5 1d4126141bfb672e503567fa29b8950f
BLAKE2b-256 74f69738f81fcc41e395a843710c628a383ed7d2c05760b6e0c022dff940870e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.5 This release

1 file

0.1.4

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page