{"repo":"revsys/django-friendship","free":true,"listed":false,"github":"https://github.com/revsys/django-friendship","clone":"git clone https://github.com/revsys/django-friendship.git","description":"Django app to manage following and bi-directional friendships","language":"Python","stars":764,"topics":["python","django","friendship"],"license":"BSD-3-Clause","category":"api-integrations-sdks","readme_excerpt":"django-friendship This application enables you to create and manage follows, blocks and bi-directional friendships between users. It features: - Friendship request objects that can be accepted, rejected, canceled, or marked as viewed. - Hooks to easily list all friend requests sent or received by a given user, filtered by the status of the request. - A blocklist for each user of users they've blocked. - Tags to include information about friendships, blocks and follows in your templates. - Integration with AUTH USER MODEL . - Validation to prevent common mistakes. - Faster server response time through caching Requirements Django 4.2, 5.0, 5.1, 5.2, 6.0, and 6.1 + Python 3.10, 3.11, 3.12, 3.13, 3.14, and 3.15 (including free-threading) since v1.10.0 . Python 3.15 is still in beta, so it is tested but not yet promised. Previously: - Django 4.2, 5.1, 5.2 + Python 3.9–3.13 since v1.9.6 Installation 1. pip install django-friendship 2. add \"friendship\" to INSTALLED APPS and run python manage.py migrate . 3. Use the friendship manager in your own views, or wire up the URLconf to include the builtin views: Usage django-friendship provides a free API that gives you several ways to create and manage friendship requests or follows in your views. Add the following at the top of your views.py : Getting Data about Friendships - List all of a user's friends: Friend.objects.friends(user=request.user) - Count of a user's friends: Friend.objects.friend count(user=request.user) - List all unread","default_branch":null,"files":null,"tree":[],"storefront":"/r/revsys","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/revsys/django-friendship/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}