django-rest-friendship example

196 views
Skip to first unread message

Gilberto manohisoa

unread,
Aug 25, 2021, 7:23:43 AM8/25/21
to Django REST framework
Hello everyone,
Some time ago, I coded something with python a kind of social network, I use dango and django rest as backend and reactjs frontend, I encountered problem about friend system, I searched everything but I found nothing and after some time I found this "django-rest-friendship", but the problem that there is no documentation or example, if someone has a clue on my problem, ca will be great.
thank you so much

Andrea Tedeschi

unread,
Aug 27, 2021, 6:33:26 AM8/27/21
to Django REST framework
Hi erwan,

The library you mentioned is not mantained since 2018 as you can see from the commit history on github. However it's just a REST wrapper of the django-frinedship library that unlike the one you are referring to, is acrively matained.
If you look at the source code of django-rest-friendship it's pretty easy to understand and reproduce / improve, you only need to create a serializer and a viewset for both Firend and FriendshipRequest models, than register viewsets in a router.
Reply all
Reply to author
Forward
0 new messages