Django LDP Like
The goal of this repository is to make available to all of our models a Like feature, covering the like action, dislike action, and count of both use cases.
The like Model will be related to an IDURLField targetting users/ so that we will be able to relate the users and their likes in a distributed world.
Would ideally be implemented in a way which makes it compatible with the ActivityPub Like Activity
Add your package in settings.py of the app. Now, you can test if your package is imported propefully by doing a
python manage.py shell then
from djangoldp_myawesomepackage.models import ExampleModel
If, no error, it's working.
- Make it work:
Being able to post a like, a dislike. Being able to retrieve the count of likes and dislikes for a given resource Being able to do that on the federation instance bearing the current user identity
- Make it clean
Test it in the context of the federation Ensure we stay compliant with the activityPub specification
When you're ready to publish your app :
sib-deployuser as a
maintainerto the project (
Settings > Members)
Settings > CI/CD > Pipelines)
masterbranch allowing only
maintainersto push (
Settings > Repository > Protected branches)
Configure CI/CD variables to authenticate on pypi.org:
- Replace the "do_not_publish" by "master" in the .gitlab-ci.yml
If you dont need factory, you can remove the mock_example command, the factories files and the extras_require section in setup.cfg
Provide a factory is a good pratice in order to simplify the mocking of data on a server / in a test pipeline.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for djangoldp_like-0.0.3-py3-none-any.whl