Skip to main content

The followit django app allows to easily set up a capability for the site users to follow various things on the site, represented by django model objects.

Setup

To the INSTALLED_APPS in your settings.py add entry 'followit'. Then, in your apps’ models.py, probably at the end of the file, add:

import followit followit.register(Thing)

Once that is done, in your shell run:

python manage.py syncdb

Not it will be possible for the user to follow instances of SomeModel.

If you decide to allow following another model, just add another followit.register(...) statement to the models.py and re-run the syncdb.

Usage

Examples below show how to use followit (assuming that model Thing is registered with followit in your models.py.

bob.follow_thing(x) bob.unfollow_thing(x) things = bob.get_followed_things() x_followers = x.get_followers()

Note that followit does not yet provide view functions of url routing relevant to following or unfollowing items, nor template tags.

Metadata

Release files for followit 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for followit 0.0.2
File Size Uploaded Provenance
followit-0.0.2.tar.gz 10.0 kB Without provenance Details

Release files / followit-0.0.2.tar.gz

Download URL followit-0.0.2.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ec0eb65b3f3b0cc4ea50fb49141b551f43f9b0a6fcfd9ea73df75fa21d3d0d56
BLAKE2b-256 checksum
How to use checksums
e1ef374f10f30037cfcc233c26a7bf25ffaa3e295a40b1214c1971f36d7a69ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for followit 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

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