Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: eacbee125f
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (20 sloc) 0.58 kb

Usage

In your settings

You need to add each model that you want to be likable to the PHILEO_LIKABLE_MODELS setting:

PHILEO_LIKABLE_MODELS = [
    "profiles.Profile",
    "videos.Video",
    "biblion.Post"
]

In the templates

Let's say you have a detail page for a blog post. First you will want to load the tags:

{% load phileo_tags %}

In the body where you want the liking widget to go, add:

{% phileo_widget request.user post %}

That's all you need to do to get the basics working.

Jump to Line
Something went wrong with that request. Please try again.