django-generic-feeds
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
Metadata
Release files for django-generic-feeds 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-generic-feeds-0.1.5.tar.gz | 4.3 kB | Without provenance | Details for django-generic-feeds-0.1.5.tar.gz |
Release files / django-generic-feeds-0.1.5.tar.gz
| Download URL | django-generic-feeds-0.1.5.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
802d0e5e22dbb4a24f6f59a449eaeb426f87ebadf0954da27f6183646c1bd048
|
|
BLAKE2b-256 checksum How to use checksums |
74f69738f81fcc41e395a843710c628a383ed7d2c05760b6e0c022dff940870e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-generic-feeds 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.