Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

favorite button as a reusable app for django

License

Notifications You must be signed in to change notification settings

sinasamavati/django-favorite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-favorite

A simple reusable app for django that makes it easy to have a favorite button for any model.

Installation

$ pip install django-favorite

Usage

First off, include its css/js file

<link rel="stylesheet" href="{% static 'css/favorite.css' %}">

<!-- inside your javascript block -->
<script src="{% static 'js/favorite.js' %}"></script>

and then

{% load favorite_tags %}

{% for comment in post.comments %}
  {% favorite_button comment %}
{% endfor %}

About

favorite button as a reusable app for django

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published