March 2020
Intermediate to advanced
608 pages
17h 17m
English
You can now use the {% like_widget for object %} template tag for any object in your website. It generates a widget that will show the Like state based on whether and how the current logged-in user has responded to the object.
The Like button has three custom HTML5 data attributes:
Using django-sekizai, we add the <script src="{% static 'likes/js/widget.js' %}"></script> to the page. Note that, if there were more than one Like