Skip to main content

A Django application that allows users to follow django model objects

Project description

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.

Project details


Download files

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

Source Distribution

followit-0.0.2.tar.gz (10.0 kB view details)

Uploaded Source

File details

Details for the file followit-0.0.2.tar.gz.

File metadata

  • Download URL: followit-0.0.2.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for followit-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ec0eb65b3f3b0cc4ea50fb49141b551f43f9b0a6fcfd9ea73df75fa21d3d0d56
MD5 29fe8e4e2776de4642168697d6997750
BLAKE2b-256 e1ef374f10f30037cfcc233c26a7bf25ffaa3e295a40b1214c1971f36d7a69ca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page