Skip to main content

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

Project description

# 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

```html
<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 %}
```

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-favorite, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size django-favorite-0.0.1.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page