django-followit 0.0.2

A Django application that allows users to follow django model objects

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
BSD License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Evgeny Fadeev
HOMEPAGE:
github.com
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
django-followit is a Django app that 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.

Last updated on July 19th, 2011

requirements

#Django model #follow objects #Django #model #objects #follow

Add your review!

SUBMIT