Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: bdba2e40b2
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (20 sloc) 0.572 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 views

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.