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 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.

Release History

Release History

This version
History Node

0.0.2

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
followit-0.0.2.tar.gz (10.0 kB) Copy SHA256 Checksum SHA256 Source Jul 16, 2011

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