Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

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


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

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page