skip to navigation
skip to content

django-followit 0.2.1

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 ``followit.models.FollowRecord``
using the ``django.contrib.models.ContentTypes`` system.

Release Notes
Starting the version ``0.2.0``, django-followit supports django 1.8.

Starting the version ``0.1.0``, `django-followit` supports django 1.7.
Also starting this version, method `register` must be called from your app's
`AppConfig.ready()` method.

Starting the version ``0.0.8`` it is not necessary to run ``syncdb`` for this app,
but instead run the ``migrate`` command.


To the INSTALLED_APPS in your ```` add entry ``'followit'``.
Run `python migrate followit`

Then, in the body of `AppConfig.ready` method, add::
import followit

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.


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.2.1.tar.gz (md5) Source 2016-02-25 11KB