Skip to main content

A Django application that allows users to follow django model objects

Project description

Tests

The followit django app allows for the site users to follow various instances of Django models, represented by django model followit.models.FollowRecord using the django.contrib.models.ContentTypes system.

Release Notes

Version 0.7.x

Supports Python 3.8 - 3.14 and Django 4.2 - 6.0.

Python

Django 4.2

Django 5.2

Django 6.0

3.8

Yes

3.9

Yes

3.10

Yes

Yes

3.11

Yes

Yes

3.12

Yes

Yes

Yes

3.13

Yes

Yes

Yes

3.14

Yes

Yes

Yes

Earlier versions

* ``0.6.x`` supports Django 1.10 to 4.x
* ``0.5.x`` supports Django versions 1.10 up to 3.2
* ``0.4.x`` Django 1.7(**) - 1.9. Python 2 and 3.
* ``0.3.x`` - Django 1.9 - 1.11
* ``0.2.x`` - Django 1.8
* ``0.1.x`` - Django 1.7
* ``0.0.9`` can be used for the earlier versions

(**) versions 0.4.x do not support Django 1.7 with Python 3.

Setup

To the INSTALLED_APPS in your settings.py add entry 'followit'.

Run python manage.py migrate followit

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

import followit
followit.register(Thing)

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.

Usage

Examples below show how to use followit:

bob.follow_thing(x)
bob.unfollow_thing(x)
things = bob.get_followed_things()
x_followers = x.get_followers()

To follow/unfollow items via the HTTTP, make AJAX post requests at urls, available urls followit/urls.py:

/follow/<model_name>/<item_id>/
{% url follow_object "somemodel" item_id %} #model name lower case

/unfollow/<model_name>/<item_id>/
{% url unfollow_object "somemodel" item_id %} #lower case model name

/toggle-follow/<model_name>/<item_id>/
{% url toggle_follow_object "somemodel" item_id %} #lower case model name

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

django_followit-0.7.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_followit-0.7.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file django_followit-0.7.0.tar.gz.

File metadata

  • Download URL: django_followit-0.7.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for django_followit-0.7.0.tar.gz
Algorithm Hash digest
SHA256 05b103437c89283cb3fa026c6883a9e20256edc46e8b5898b6c53ada73522644
MD5 024a081b6d9198b051c57839f6ccb011
BLAKE2b-256 c4f34799485ec7ab379be67daefc8cb124e52e6871293b97dd3356ab44065989

See more details on using hashes here.

File details

Details for the file django_followit-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_followit-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c4445c19ef083102b99cf505e05e71b76c6ed208255b614654e40a1d11b64adb
MD5 980a3b4101924aa703bb6b0cc8b2d4fe
BLAKE2b-256 5dffe50cc2a685345efdfc25d952d30a0d6dbc32d680477d7b8287ac903e6025

See more details on using hashes here.

Supported by

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