skip to navigation
skip to content

Not Logged In

django-followit 0.0.7

A Django application that allows users to follow django model objects

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.


To the INSTALLED_APPS in your ```` add entry ``'followit'``.
Then, in your apps' ````, probably at the end of the file, add::
import followit

Once that is done, in your shell run::
python 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 ```` and re-run the ``syncdb``.


Examples below show how to use ``followit`` (assuming that model ``Thing``
is registered with ``followit`` in your ````::
things = bob.get_followed_things()
x_followers = x.get_followers()

Available urls from the `followit/`::
{% url follow_object "somemodel" item_id %} #model name lower case

{% url unfollow_object "somemodel" item_id %} #lower case model name

{% url toggle_follow_object "somemodel" item_id %} #lower case model name

``followit`` does not yet provide template tags.  
File Type Py Version Uploaded on Size
django-followit-0.0.7.tar.gz (md5) Source 2015-03-04 10KB
  • Downloads (All Versions):
  • 69 downloads in the last day
  • 318 downloads in the last week
  • 2428 downloads in the last month